mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-08 18:38:03 +00:00
Fix #13, PEP8-ify notebooks.
This commit is contained in:
@@ -92,6 +92,7 @@
|
||||
"\n",
|
||||
"\n",
|
||||
"class MyStack(Stack):\n",
|
||||
"\n",
|
||||
" def __init__(self, top=None):\n",
|
||||
" # TODO: Implement me\n",
|
||||
" pass\n",
|
||||
@@ -133,6 +134,7 @@
|
||||
"\n",
|
||||
"\n",
|
||||
"class TestStackMin(object):\n",
|
||||
"\n",
|
||||
" def test_stack_min(self):\n",
|
||||
" print('Test: Push on empty stack, non-empty stack')\n",
|
||||
" stack = MyStack()\n",
|
||||
@@ -161,13 +163,15 @@
|
||||
"\n",
|
||||
" print('Test: Pop empty stack')\n",
|
||||
" assert_equal(stack.pop(), None)\n",
|
||||
" \n",
|
||||
"\n",
|
||||
" print('Success: test_stack_min')\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"def main():\n",
|
||||
" test = TestStackMin()\n",
|
||||
" test.test_stack_min()\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"if __name__ == '__main__':\n",
|
||||
" main()"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user