<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 int Lab03.gcd(int a,int b)
 * which returns gcd(a,b)
 */
public class Lab03GCDTest {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testSimple() {
		assertEquals(6, run(24,18));
	}

	@Test
	public void testZerp() {
		assertEquals(0, run(0,0));
		assertEquals(12, run(12,0));
		assertEquals(12, run(0,12));
	}

	@Test
	public void testEquals() {
		assertEquals(12, run(12,12));
	}

	
	int run(int a, int b) {
		return Lab03.gcd(a, b);
	}

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