summaryrefslogtreecommitdiff
path: root/python/problems/introduction/ballistics
diff options
context:
space:
mode:
Diffstat (limited to 'python/problems/introduction/ballistics')
-rw-r--r--python/problems/introduction/ballistics/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/problems/introduction/ballistics/common.py b/python/problems/introduction/ballistics/common.py
index eaf230d..8773dab 100644
--- a/python/problems/introduction/ballistics/common.py
+++ b/python/problems/introduction/ballistics/common.py
@@ -66,7 +66,7 @@ def test(python, code):
'10.05',
'3.49',
'3.49',
- '13.94',
+ '13.96',
'0'
]
@@ -78,7 +78,7 @@ def test(python, code):
tin = None
for i, (output, correct) in enumerate(zip(outputs, test_out)):
print (output, float(correct))
- if string_almost_equal(output, float(correct)):
+ if string_almost_equal(output, float(correct), prec=2):
n_correct += 1
else:
tin = test_in[i][1].replace('\n', ' ')