From 5b6256888340c00f7bf3ee1727078c44e7347b30 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Mon, 10 Sep 2018 19:08:29 +1000 Subject: [PATCH] Add tests for checking dimensions --- tests/froude_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/froude_test.py b/tests/froude_test.py index 82d7344..de2b008 100644 --- a/tests/froude_test.py +++ b/tests/froude_test.py @@ -11,4 +11,7 @@ def test_froude_force(): assert froude.model_to_proto(1, 10, 'N', 'N') == 1000 def test_unit_dimensions(): + assert froude.dimensions('m') == 'L^1' + assert froude.dimensions('kg') == 'M^1' + assert froude.dimensions('s') == 'T^1' assert froude.dimensions('N') == 'L^1 M^1 T^-2'