Пример #1
0
 def test_is_zero(self):
     self.assertTrue(fracs.is_zero([0, 3]))
     self.assertFalse(fracs.is_zero([-2, 2]))
Пример #2
0
 def test_is_zero(self):
     self.assertTrue(fracs.is_zero([0, 1]))
     self.assertTrue(fracs.is_zero([0, 0]))
     self.assertFalse(fracs.is_zero([2, 0]))
     self.assertFalse(fracs.is_zero([2, 2]))
Пример #3
0
 def test_is_zero(self):
     self.assertTrue(fracs.is_zero(f2))
     self.assertTrue(fracs.is_zero(f5))
     self.assertFalse(fracs.is_zero(f3))
Пример #4
0
 def test_is_zero(self):
     self.assertEqual(fracs.is_zero([0, 1]),True)
     self.assertEqual(fracs.is_zero([3, 2]),False)
Пример #5
0
 def test_is_zero(self):
     self.assertTrue(fracs.is_zero([0, 1]))
Пример #6
0
 def test_is_zero(self):
     self.assertTrue(fracs.is_zero(self.czwarty))
Пример #7
0
 def test_is_zero(self):
     self.assertEqual(fracs.is_zero([0, 2]), True)
     self.assertEqual(fracs.is_zero([1, 2]), False)
     self.assertEqual(fracs.is_zero([0, 0]), True)
     self.assertEqual(fracs.is_zero([2, 0]), False)  # <==== doesn't exist!
Пример #8
0
 def test_is_zero(self):
     self.assertEqual(fracs.is_zero([0, 4]), True)
     self.assertEqual(fracs.is_zero([2, 3]), False)
Пример #9
0
 def test_is_zero(self):
     self.assertEqual(fracs.is_zero([1, 2]), False)