示例#1
0
 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)
示例#2
0
 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]))
示例#3
0
 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]))
示例#4
0
 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)
示例#5
0
 def test_is_positive(self):
     self.assertTrue(fracs.is_positive(f4))
     self.assertTrue(fracs.is_positive(f3))
     self.assertFalse(fracs.is_positive(f1))
示例#6
0
 def test_is_positive(self):
     self.assertTrue(fracs.is_positive([1, 2]))
示例#7
0
 def test_is_positive(self):
     self.assertFalse(fracs.is_positive(self.trzeci))
示例#8
0
文件: 5.2.py 项目: efreim/UJ-Python
 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)
示例#9
0
 def test_is_positive(self):
     self.assertEqual(fracs.is_positive([1, 2]), True)