Commit 875f163
committed
Python 3 test_finding_lines2() assert passes as-is
Fixes issue gregmalcolm#169, reported in @denis-roy's pull request gregmalcolm#157: The
Python 3 version of AboutWithStatements.test_finding_lines2 contains an
assertNotEqual(__, ...) that passes without the student having to
change anything.
I think the idea was that the assertNotEqual would test that the
student-written function returns _anything_ (by default, the pass
statement returns None), while the assertEqual would test that
furthermore the return value is correct.
In this version, the general (not-None) assertion is tested before the
specific. Also, both assertions have the passing / expected values
hard-coded, meaning the student should change only the function they
test, not the assertions themselves.1 parent f4b2b8d commit 875f163
File tree
2 files changed
+9
-7
lines changed- python2/koans
- python3/koans
2 files changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
98 | | - | |
| 98 | + | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments