mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-03 16:08:02 +00:00
Fix #13, PEP8-ify notebooks.
This commit is contained in:
@@ -2,7 +2,7 @@ from nose.tools import assert_equal
|
||||
|
||||
|
||||
class TestStack(object):
|
||||
|
||||
|
||||
# TODO: It would be better if we had unit tests for each
|
||||
# method in addition to the following end-to-end test
|
||||
def test_end_to_end(self):
|
||||
@@ -30,12 +30,14 @@ class TestStack(object):
|
||||
assert_equal(stack.pop(), 1)
|
||||
assert_equal(stack.peek(), None)
|
||||
assert_equal(stack.is_empty(), True)
|
||||
|
||||
|
||||
print('Success: test_end_to_end')
|
||||
|
||||
|
||||
def main():
|
||||
test = TestStack()
|
||||
test.test_end_to_end()
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user