From 3d82dc13d540daf80e7ed59aa9a2ddf77bc9f4e9 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Wed, 12 Sep 2018 17:13:39 +1000 Subject: [PATCH] Add tests --- tests/froude_test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/froude_test.py b/tests/froude_test.py index afcb1f8..5e90b1d 100644 --- a/tests/froude_test.py +++ b/tests/froude_test.py @@ -51,9 +51,16 @@ def test_unit_dimensions(): assert froude.dimensions('kg') == 'M^1' assert froude.dimensions('s') == 'T^1' assert froude.dimensions('N') == 'L^1 M^1 T^-2' + assert froude.dimensions('Pa') == 'L^-1 M^1 T^-2' + assert froude.dimensions('L/m/s') == 'L^2 T^-1' + assert froude.dimensions('mm^2.s') == 'L^2 T^1' def test_scaling_exponent(): assert froude.scaling_exponent('m') == 1 assert froude.scaling_exponent('kg') == 3 assert froude.scaling_exponent('s') == 0.5 + assert froude.scaling_exponent('N') == 3 + assert froude.scaling_exponent('Pa') == 1 + assert froude.scaling_exponent('L/m/s') == 1.5 + assert froude.scaling_exponent('mm^2.s') == 2.5