Skip to content

Commit

Permalink
add scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
azhukov committed Sep 26, 2015
1 parent 09197b0 commit b1df346
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions skiplist-py/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ def test_remove(self):
del sl['what']
self.assertRaises(KeyError, lambda: sl['what'])

def test_str(self):
sl = Skiplist()
self.assertEqual('skiplist([])', str(sl))
sl['1'] = 1
self.assertEqual('skiplist([\'1\'])', str(sl))
if __name__ == '__main__':
unittest.main()

0 comments on commit b1df346

Please sign in to comment.