11 lines
326 B
Python
11 lines
326 B
Python
import unittest
|
|
|
|
class TestSolution(unittest.TestCase):
|
|
def test_sort(self):
|
|
# define x as a empty array.
|
|
# this will be used for the functiun ; a empty var does not work.
|
|
self.x = []
|
|
self.assertEqual(sortlist(self.x), sorted(self.x)) ## sort
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main() |