示例#1
0
 def test_is_not_sorted(self):
     compu = CompuTools()
     self.assertFalse(compu.is_sorted([1,3,2,4]))
示例#2
0
 def test_is_sorted(self):
     compu = CompuTools()
     self.assertTrue(compu.is_sorted([1,2,3,4]))
示例#3
0
 def test_is_not_sorted(self, list):
     compu = CompuTools()
     self.assertFalse(compu.is_sorted(list))
示例#4
0
 def test_is_sorted(self, list):
     compu = CompuTools()
     self.assertTrue(compu.is_sorted(list))
示例#5
0
 def test_is_not_sorted(self):
     compu = CompuTools()
     self.assertFalse(compu.is_sorted([3, 4, 1, 2]))
示例#6
0
 def test_is_sorted(self, list, result):
     compu = CompuTools()
     self.assertEqual(compu.is_sorted(list), result)