From 46c6fe525769cd3f186cf92dcdf5b70586a50929 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Wed, 12 Sep 2018 07:19:34 +1000 Subject: [PATCH] Add tests --- tests/froude_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/froude_test.py b/tests/froude_test.py index 08ead59..4dbb64a 100644 --- a/tests/froude_test.py +++ b/tests/froude_test.py @@ -4,9 +4,11 @@ from scaling import froude def test_unit_to_same_unit(): assert froude.model_to_proto(1, 1, 'm', 'm') == 1 + assert froude.proto_to_model(1, 1, 'm', 'm') == 1 def test_unit_to_different_unit(): assert froude.model_to_proto(1, 1, 'kN', 'N') == 1000 + assert froude.proto_to_model(1000, 1, 'N', 'kN') == 1 def test_froude_length(): assert froude.model_to_proto(1, 10, 'm', 'm') == 10