summaryrefslogtreecommitdiff
path: root/python/problems/while_and_if/top_shop/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/problems/while_and_if/top_shop/common.py')
-rw-r--r--python/problems/while_and_if/top_shop/common.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/problems/while_and_if/top_shop/common.py b/python/problems/while_and_if/top_shop/common.py
index 115dc9e..02855ec 100644
--- a/python/problems/while_and_if/top_shop/common.py
+++ b/python/problems/while_and_if/top_shop/common.py
@@ -5,7 +5,6 @@ from python.util import has_token_sequence, string_almost_equal, \
from server.hints import Hint
id = 198
-group = 'while_and_if'
number = 3
visible = True
@@ -55,7 +54,7 @@ def test(python, code):
n_correct = 0
tin = None
for i, (output, correct) in enumerate(zip(outputs, test_out)):
- if all(string_almost_equal(output, correct[i]) for i in range(2)):
+ if all(string_almost_equal(output, correct[i], prec=2) for i in range(2)):
n_correct += 1
else:
tin = test_in[i][1]