From 18f9cb27dd1694c0747c0add99e38622dc8b72c8 Mon Sep 17 00:00:00 2001 From: ptmcg Date: Sun, 11 Sep 2016 16:19:57 +0000 Subject: Add tests of sci_real git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@436 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b --- src/unitTests.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.1