mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-06 01:18:02 +00:00
Fix #13, PEP8-ify notebooks.
This commit is contained in:
@@ -2,7 +2,7 @@ from nose.tools import assert_equal
|
||||
|
||||
|
||||
class TestPartition(object):
|
||||
|
||||
|
||||
def test_partition(self):
|
||||
print('Test: Empty list')
|
||||
linked_list = MyLinkedList(None)
|
||||
@@ -32,14 +32,16 @@ class TestPartition(object):
|
||||
linked_list.insert_to_front(3)
|
||||
linked_list.insert_to_front(4)
|
||||
partitioned_list = linked_list.partition(10)
|
||||
assert_equal(partitioned_list.get_all_data(),
|
||||
assert_equal(partitioned_list.get_all_data(),
|
||||
[4, 3, 7, 8, 1, 10, 10, 12])
|
||||
|
||||
|
||||
print('Success: test_partition')
|
||||
|
||||
|
||||
def main():
|
||||
test = TestPartition()
|
||||
test.test_partition()
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user