示例#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