Example #1
0
 def test_alot(self):
     arr = [random.randint(0, 10000) for i in range(100000)]
     res = lab6.radixsort(arr)
     arr.sort()
     self.assertFalse(not res)
     self.assertEqual(arr, res)
Example #2
0
 def test_trivial(self):
     arr = [1, 333, 22]
     res = lab6.radixsort(arr)
     expected = [1, 22, 333]
     self.assertFalse(not res)  # check res not empty
     self.assertEqual(expected, res)
Example #3
0
 def test_empty(self):
     arr = []
     res = lab6.radixsort(arr)
     expected = []
     self.assertEqual(expected, res)