From a7a5c583d295c70f63898a005bd00b7d84412478 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 22 Sep 2017 15:33:34 +0200 Subject: o Fixing parsing of '0.1' values too. --- test/test_formatting.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test_formatting.py b/test/test_formatting.py index 6687e96..642b3de 100644 --- a/test/test_formatting.py +++ b/test/test_formatting.py @@ -74,6 +74,9 @@ def xx_test_eng_str3(input, expected): ("100 n", 0.0000001, "100 n", None), ("1 m", 0.001, "1 m", None), ("1 u", 0.000001, "1 u", None), + ("0.1 u", 0.0000001, "100 n", None), + (".1 u", 0.0000001, "100 n", None), + ("4.7 u", 0.0000047, "4.7 u", None), ("1 µ", 0.000001, "1 u", None), ("1 n", 0.000000001, "1 n", None), ("10 n", 0.00000001, "10 n", None), @@ -92,6 +95,7 @@ def test_EeVal(s, num_value, str_value, unit): ("10nF", "10 nF", "F"), ("10n F", "10 nF", "F"), ("10 n F", "10 nF", "F"), +# ("4.7 n F", "4.7 uF", "F"), ]) def test_EeVal_with_units(s, str_value, unit): v = EeVal(s) -- cgit v1.2.3