<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


/**
 * implement method:
 * public static boolean Lab03.isPrime(n)
 */
public class Lab03isPrimeTest {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testSimple() {
		assertEquals(true, run(7));
		assertEquals(false, run(10));
	}

	@Test
	public void testSmall() {
		assertEquals(false, run(0));
		assertEquals(false, run(1));
		assertEquals(true, run(2));
	}

	@Test
	public void testNegative() {
		assertEquals(false, run(-1));
		assertEquals(false, run(-3));
		assertEquals(false, run(-10));
		assertEquals(false, run(-100000));
	}
	
	
	@Test
	public void testLarge() {
		assertEquals(true, run(1000000007));
		assertEquals(false, run(10007*10007));
	}

	
	boolean run(int a) {
		return Lab03.isPrime(a);
	}

}
</pre></body></html>