diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_formatting.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |