mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-03-04 14:48:45 +00:00
Fix #13, PEP8-ify notebooks.
This commit is contained in:
@@ -2,7 +2,7 @@ from nose.tools import assert_equal
|
||||
|
||||
|
||||
class TestPalindrome(object):
|
||||
|
||||
|
||||
def test_palindrome(self):
|
||||
print('Test: Empty list')
|
||||
linked_list = MyLinkedList()
|
||||
@@ -33,12 +33,14 @@ class TestPalindrome(object):
|
||||
linked_list.append(2)
|
||||
linked_list.append(1)
|
||||
assert_equal(linked_list.is_palindrome(), True)
|
||||
|
||||
|
||||
print('Success: test_palindrome')
|
||||
|
||||
|
||||
def main():
|
||||
test = TestPalindrome()
|
||||
test.test_palindrome()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user