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