diff options
Diffstat (limited to 'python/problems/lists_and_for')
6 files changed, 6 insertions, 6 deletions
diff --git a/python/problems/lists_and_for/contains_42/common.py b/python/problems/lists_and_for/contains_42/common.py index fb2089e..312b601 100644 --- a/python/problems/lists_and_for/contains_42/common.py +++ b/python/problems/lists_and_for/contains_42/common.py @@ -73,7 +73,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)}}) else: if has_token_sequence(tokens, ['break']): diff --git a/python/problems/lists_and_for/contains_multiples/common.py b/python/problems/lists_and_for/contains_multiples/common.py index 59a5743..055cc3e 100644 --- a/python/problems/lists_and_for/contains_multiples/common.py +++ b/python/problems/lists_and_for/contains_multiples/common.py @@ -65,7 +65,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'}) 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'}) diff --git a/python/problems/lists_and_for/counting/common.py b/python/problems/lists_and_for/counting/common.py index 73d0071..d80d1c9 100644 --- a/python/problems/lists_and_for/counting/common.py +++ b/python/problems/lists_and_for/counting/common.py @@ -70,7 +70,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'}) diff --git a/python/problems/lists_and_for/every_third/common.py b/python/problems/lists_and_for/every_third/common.py index 2d5b907..1529184 100644 --- a/python/problems/lists_and_for/every_third/common.py +++ b/python/problems/lists_and_for/every_third/common.py @@ -60,7 +60,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'}) 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'}) |