Skip to content

Commit

Permalink
fixed session1
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmysong committed Jan 23, 2019
1 parent 771ba3d commit fcaff1e
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
3 changes: 3 additions & 0 deletions session1/answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@
18.0 77.0
#endexercise
#unittest
ecc:PointTest:test_add2:
#endunittest
'''


Expand Down
36 changes: 36 additions & 0 deletions session1/complete/session1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,42 @@
"# print the coordinates\n",
"print(x3, y3)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Exercise 17\n",
"\n",
"\n",
"\n",
"\n",
"#### Make [this test](/edit/session1/ecc.py) pass: `ecc.py:PointTest:test_add2`"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
".\n",
"----------------------------------------------------------------------\n",
"Ran 1 test in 0.001s\n",
"\n",
"OK\n"
]
}
],
"source": [
"# Exercise 17\n",
"\n",
"reload(ecc)\n",
"run(ecc.PointTest('test_add2'))"
]
}
],
"metadata": {
Expand Down
24 changes: 24 additions & 0 deletions session1/session1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,30 @@
"\n",
"# print the coordinates\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Exercise 17\n",
"\n",
"\n",
"\n",
"\n",
"#### Make [this test](/edit/session1/ecc.py) pass: `ecc.py:PointTest:test_add2`"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Exercise 17\n",
"\n",
"reload(ecc)\n",
"run(ecc.PointTest('test_add2'))"
]
}
],
"metadata": {},
Expand Down

0 comments on commit fcaff1e

Please sign in to comment.