Skip to content

Commit 451614b

Browse files
authored
added test case for test_limit (#819)
1 parent 6440664 commit 451614b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_array.py

+1
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ def test_top_1(self):
385385
class TestLimit(unittest.TestCase):
386386

387387
def test_limit(self):
388+
self.assertListEqual(limit([1, 2, 3, 4, 5]), [1, 2, 3, 4, 5])
388389
self.assertListEqual(limit([1, 2, 3, 4, 5], 2, 4), [2, 3, 4])
389390
self.assertListEqual(limit([1, 2, 3, 4, 5], 2), [2, 3, 4, 5])
390391
self.assertListEqual(limit([1, 2, 3, 4, 5], None, 4), [1, 2, 3, 4])

0 commit comments

Comments
 (0)