mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-06 09:06:51 +08:00
Remove main function from GCD class (#5828)
This commit is contained in:
@ -40,6 +40,11 @@ public class GCDTest {
|
||||
Assertions.assertEquals(GCD.gcd(9, 6), 3);
|
||||
}
|
||||
|
||||
@Test
|
||||
void test8() {
|
||||
Assertions.assertEquals(GCD.gcd(48, 18, 30, 12), 6);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testArrayGcd1() {
|
||||
Assertions.assertEquals(GCD.gcd(new int[] {9, 6}), 3);
|
||||
|
Reference in New Issue
Block a user