aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-09-22 15:33:34 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-09-22 16:37:16 +0200
commita7a5c583d295c70f63898a005bd00b7d84412478 (patch)
tree640822746e44ff90e895c052c4df2a6dfc44608c /test
parent5c0c106c9fbdc9e5e189c8ba6903bbf70d803aba (diff)
downloadee-python-a7a5c583d295c70f63898a005bd00b7d84412478.tar.gz
ee-python-a7a5c583d295c70f63898a005bd00b7d84412478.tar.bz2
ee-python-a7a5c583d295c70f63898a005bd00b7d84412478.tar.xz
ee-python-a7a5c583d295c70f63898a005bd00b7d84412478.zip
o Fixing parsing of '0.1' values too.
Diffstat (limited to 'test')
-rw-r--r--test/test_formatting.py4
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)