Exemple #1
0
 def test_m_zero(self):
     assert gcd(0, 7) == 7
Exemple #2
0
 def test_m_is_odd_n_is_odd(self):
     assert gcd(317, 73) == math.gcd(317, 73)
Exemple #3
0
 def test_n_zero(self):
     assert gcd(5, 0) == 5
Exemple #4
0
 def test_m_is_odd_n_is_even(self):
     assert gcd(15, 108) == math.gcd(15, 108)
Exemple #5
0
 def test_m_is_even_n_is_odd(self):
     assert gcd(42, 81) == math.gcd(42, 81)
Exemple #6
0
 def test_m_is_even_n_is_even(self):
     assert gcd(42, 84) == math.gcd(42, 84)
Exemple #7
0
 def test_equals_numbers(self):
     assert gcd(8, 8) == 8
Exemple #8
0
 def test_both_zero(self):
     assert gcd(0, 0) == 0