summaryrefslogtreecommitdiff
path: root/python/problems/lists_and_for/places
diff options
context:
space:
mode:
authorMartin Možina <martin.mozina@fri.uni-lj.si>2015-10-26 17:50:22 +0100
committerMartin Možina <martin.mozina@fri.uni-lj.si>2015-10-26 17:50:22 +0100
commited5473c15bdb472219056b30850605cf7e3b9a18 (patch)
tree4df880722b9865a2c5ef5bc23032e77144e5a763 /python/problems/lists_and_for/places
parentce6b6b0bc9af3cff176bd995ee25c8334eea632c (diff)
Corrected tests in for-loop problems.
Fixed some typos.
Diffstat (limited to 'python/problems/lists_and_for/places')
-rw-r--r--python/problems/lists_and_for/places/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/problems/lists_and_for/places/common.py b/python/problems/lists_and_for/places/common.py
index e7d1adf..56b3f1d 100644
--- a/python/problems/lists_and_for/places/common.py
+++ b/python/problems/lists_and_for/places/common.py
@@ -63,7 +63,7 @@ def test(python, code):
passed = n_correct == len(test_in)
hints = [{'id': 'test_results', 'args': {'passed': n_correct, 'total': len(test_in)}}]
- if tin:
+ if tin != None:
hints.append({'id': 'problematic_test_case', 'args': {'testin': str(tin), 'testout': str(tout)}})
if passed:
hints.append({'id': 'final_hint'})