def test_is_positive(self): self.assertEqual(fracs.is_positive([1, 2]), True) self.assertEqual(fracs.is_positive([-1, 2]), False) self.assertEqual(fracs.is_positive([0, 2]), False) self.assertEqual(fracs.is_positive([17, 2]), True) self.assertEqual(fracs.is_positive([-1, -2]), True) self.assertEqual(fracs.is_positive([2, -1]), False)
def test_is_positive(self): self.assertTrue(fracs.is_positive([1, 2])) self.assertTrue(fracs.is_positive([2, 1])) self.assertFalse(fracs.is_positive([0, 2])) self.assertFalse(fracs.is_positive([1, -2])) self.assertFalse(fracs.is_positive([-1, 2]))
def test_is_positive(self): self.assertTrue(fracs.is_positive([2, 2])) self.assertTrue(fracs.is_positive([-5, -4])) self.assertFalse(fracs.is_positive([30, -4])) self.assertFalse(fracs.is_positive([-4, 3]))
def test_is_positive(self): self.assertEqual(fracs.is_positive([5,10]),True) self.assertEqual(fracs.is_positive([-5,10]),False) self.assertEqual(fracs.is_positive([-5,-10]),True) self.assertEqual(fracs.is_positive([5,-10]),False)
def test_is_positive(self): self.assertTrue(fracs.is_positive(f4)) self.assertTrue(fracs.is_positive(f3)) self.assertFalse(fracs.is_positive(f1))
def test_is_positive(self): self.assertTrue(fracs.is_positive([1, 2]))
def test_is_positive(self): self.assertFalse(fracs.is_positive(self.trzeci))
def test_is_positive(self): self.assertEqual(fracs.is_positive([1, 2]), True) self.assertEqual(fracs.is_positive([4, 6]), True) self.assertEqual(fracs.is_positive([-2, -4]), True) self.assertEqual(fracs.is_positive([-2, 3]), False)
def test_is_positive(self): self.assertEqual(fracs.is_positive([1, 2]), True)