From ed5473c15bdb472219056b30850605cf7e3b9a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mo=C5=BEina?= Date: Mon, 26 Oct 2015 17:50:22 +0100 Subject: Corrected tests in for-loop problems. Fixed some typos. --- python/problems/lists_and_for/contains_string/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/problems/lists_and_for/contains_string/common.py') diff --git a/python/problems/lists_and_for/contains_string/common.py b/python/problems/lists_and_for/contains_string/common.py index 62fef4e..5470251 100644 --- a/python/problems/lists_and_for/contains_string/common.py +++ b/python/problems/lists_and_for/contains_string/common.py @@ -67,7 +67,7 @@ def test(python, code): passed = n_correct == len(test_xs) hints = [{'id': 'test_results', 'args': {'passed': n_correct, 'total': len(test_xs)}}] - 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'}) -- cgit v1.2.1