From 0479fe917094f59d23f4c73adea198e39ff3616a Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Wed, 12 Sep 2018 07:52:46 +1000 Subject: [PATCH] Add tests --- tests/froude_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/froude_test.py b/tests/froude_test.py index 4dbb64a..3d73b3e 100644 --- a/tests/froude_test.py +++ b/tests/froude_test.py @@ -12,12 +12,15 @@ def test_unit_to_different_unit(): def test_froude_length(): assert froude.model_to_proto(1, 10, 'm', 'm') == 10 + assert froude.proto_to_model(10, 10, 'm', 'm') == 1 def test_froude_time(): assert froude.model_to_proto(1, 25, 's', 's') == 5 + assert froude.proto_to_model(5, 25, 's', 's') == 1 def test_froude_force(): assert froude.model_to_proto(1, 10, 'N', 'N') == 1000 + assert froude.proto_to_model(1000, 10, 'N', 'N') == pytest.approx(1, 0.1) def test_froude_time_index_dataframe(): df_model = pd.DataFrame(index=[2], data=[20])