예제 #1
0
 def test_simple_gcd1(self):
     assert tdd_prime.gcd(1, 1) == 1
예제 #2
0
 def test_simple_gcd(self):
     assert tdd_prime.gcd(5, 7) == 1
예제 #3
0
 def test_simple_gcd12(self):
     assert tdd_prime.gcd(-12, 6) == 6
예제 #4
0
 def test_simple_gcd9(self):
     assert tdd_prime.gcd(12, 6) == 6
예제 #5
0
 def test_simple_gcd11(self):
     assert tdd_prime.gcd(-6, 12) == 6
예제 #6
0
 def test_simple_gcd8(self):
     assert tdd_prime.gcd(0, 0) == 0
예제 #7
0
 def test_simple_gcd7(self):
     assert tdd_prime.gcd(0, -1) == 1
예제 #8
0
 def test_simple_gcd6(self):
     assert tdd_prime.gcd(-1, 0) == 1
예제 #9
0
 def test_simple_gcd5(self):
     assert tdd_prime.gcd(1, -4) == 1
예제 #10
0
 def test_simple_gcd4(self):
     assert tdd_prime.gcd(-1, 4) == 1