Beispiel #1
0
 def test_input_thousand(self):
     self.assertEqual(pythagorean_triplets(1000), {
         "a": 200,
         "b": 375,
         "c": 425,
         "abc": 31875000
     })
Beispiel #2
0
 def test_input_three(self):
     self.assertEqual(pythagorean_triplets(3), None)
Beispiel #3
0
 def test_input_one(self):
     self.assertEqual(pythagorean_triplets(1), None)
Beispiel #4
0
 def test_input_two(self):
     self.assertEqual(pythagorean_triplets(2), None)
Beispiel #5
0
 def test_input_zero(self):
     self.assertEqual(pythagorean_triplets(0), None)