Fix #13, PEP8-ify notebooks.

This commit is contained in:
Donne Martin
2015-07-11 15:39:59 -04:00
parent 4566d1a803
commit 3712839cc9
26 changed files with 139 additions and 92 deletions

View File

@@ -120,6 +120,7 @@
"\n",
"\n",
"class MyStack(Stack):\n",
"\n",
" def __init__(self, top=None):\n",
" self.min_vals = Stack()\n",
" super(MyStack, self).__init__(top)\n",
@@ -171,6 +172,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",
@@ -199,13 +201,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()"
]