diff options
-rw-r--r-- | src/unitTests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unitTests.py b/src/unitTests.py index b21d1aa..cf2900d 100644 --- a/src/unitTests.py +++ b/src/unitTests.py @@ -2863,6 +2863,14 @@ class CommonExpressionsTest(ParseTestCase): """)[0]
assert success, "error in parsing valid numerics"
+ success = pyparsing_common.sci_real.runTests("""
+ 1e12
+ -1e12
+ 3.14159
+ 6.02e23
+ """)[0]
+ assert success, "error in parsing valid scientific notation reals"
+
# any int or real number, returned as float
success = pyparsing_common.fnumber.runTests("""
100
|