Skip to content

Commit 7e7b002

Browse files
Merge pull request #125 from lambda-feedback/tr136-imperial-units-bug
Reran generation of static unit conversion arrays to add imperial units
2 parents e09a298 + 2df6ab6 commit 7e7b002

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

app/evaluation_tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,13 @@ def test_compare_quantities_with_rtol_short_form(self):
426426
response = "1"*k+"0"*(5-k)+"*m"
427427
self.assertEqual_input_variations(response, answer, params, False)
428428

429+
def test_compare_quantities_with_rtol_and_different_unit_systems(self):
430+
answer = "1.0*kilo*gram"
431+
params = {"rtol": "0.05", "strict_syntax": False}
432+
responses = ["1.02*kilo*gram", "2.2*pound"]
433+
for response in responses:
434+
self.assertEqual_input_variations(response, answer, params, True)
435+
429436
def test_compare_quantities_with_atol(self):
430437
answer = "1.0*metre"
431438
params = {"atol": "0.05", "strict_syntax": False}

app/static_unit_conversion_arrays.py

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)