From 1c3ca1849aa1f4e46f52f243425d2bd04120bbf5 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Mon, 10 Sep 2018 19:17:30 +1000 Subject: [PATCH] Add tests --- tests/froude_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/froude_test.py b/tests/froude_test.py index d5c713d..531cddc 100644 --- a/tests/froude_test.py +++ b/tests/froude_test.py @@ -4,9 +4,15 @@ from scaling import froude def test_unit_to_same_unit(): assert froude.model_to_proto(1, 1, 'm', 'm') == 1 +def test_unit_to_different_unit(): + assert froude.model_to_proto(1, 1, 'kN', 'N') == 1000 + def test_froude_length(): assert froude.model_to_proto(1, 10, 'm', 'm') == 10 +def test_froude_time(): + assert froude.model_to_proto(1, 25, 's', 's') == 5 + def test_froude_force(): assert froude.model_to_proto(1, 10, 'N', 'N') == 1000