mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 18:08:01 +00:00
Fix #13, PEP8-ify notebooks.
This commit is contained in:
@@ -2,7 +2,7 @@ from nose.tools import assert_equal
|
||||
|
||||
|
||||
class TestRemoveDupes(object):
|
||||
|
||||
|
||||
def test_remove_dupes(self, linked_list):
|
||||
print('Test: Empty list')
|
||||
linked_list.remove_dupes()
|
||||
@@ -24,13 +24,15 @@ class TestRemoveDupes(object):
|
||||
print('Test: General case, no duplicates')
|
||||
linked_list.remove_dupes()
|
||||
assert_equal(linked_list.get_all_data(), [1, 3, 2])
|
||||
|
||||
|
||||
print('Success: test_remove_dupes\n')
|
||||
|
||||
|
||||
def main():
|
||||
test = TestRemoveDupes()
|
||||
linked_list = MyLinkedList(None)
|
||||
test.test_remove_dupes(linked_list)
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user