From 4e7b80974d7433f96fa1908293e5faee9d8de519 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 2 Oct 2015 16:14:24 +0200 Subject: Removed unnecessary HintSequences. --- python/problems/while_and_if/consumers_anonymous/common.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'python/problems/while_and_if/consumers_anonymous/common.py') diff --git a/python/problems/while_and_if/consumers_anonymous/common.py b/python/problems/while_and_if/consumers_anonymous/common.py index d1428d8..ff3f928 100644 --- a/python/problems/while_and_if/consumers_anonymous/common.py +++ b/python/problems/while_and_if/consumers_anonymous/common.py @@ -2,7 +2,7 @@ from python.util import has_token_sequence, string_almost_equal, \ string_contains_number, get_tokens, get_numbers, get_exception_desc -from server.hints import Hint, HintSequence +from server.hints import Hint id = 201 group = 'while_and_if' @@ -30,8 +30,9 @@ hint_type = { 'nonumber': Hint('nonumber'), 'while_condition': Hint('while_condition'), 'final_hint': Hint('final_hint'), - 'summation': Hint('final_hint'), - 'counting': Hint('final_hint'), + 'summation': Hint('summation'), + 'counting': Hint('counting'), + 'problematic_test_case': Hint('problematic_test_case'), } def test(python, code): @@ -69,7 +70,7 @@ def test(python, code): tout = correct passed = n_correct == len(test_in) - hints = [{'id': 'test_results', 'args': {'passed': n_correct, 'total': len(test_in)}}] + hints = [{'id': 'test_results', 'args': {'passed': str(n_correct), 'total': str(len(test_in))}}] if tin: hints.append({'id': 'problematic_test_case', 'args': {'testin': str(tin), 'sum': str(tout[0]), -- cgit v1.2.1