diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-06-13 08:44:03 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-06-13 08:44:03 +0200 |
commit | e9ee46dea6d1e1fdc19b42914696aba8a985fc31 (patch) | |
tree | 2374982d5de6a3db0f459a581796982e4278a18a /_test/test_float.py | |
parent | abb4161983a5d93149e01e590362510e59fc3c6e (diff) | |
parent | 13a883ccbdcba12f942c134aceb9e38fe70f372f (diff) | |
download | ruamel.yaml-e9ee46dea6d1e1fdc19b42914696aba8a985fc31.tar.gz |
Merge PR29, fixes issue #195
*When this change indeed resolves your problem, please **Close** this issue*.
*(You can do so usingthe WorkFlow pull-down (close to the top right of this page)*
Diffstat (limited to '_test/test_float.py')
-rw-r--r-- | _test/test_float.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/_test/test_float.py b/_test/test_float.py index f9d060d..dc39ce9 100644 --- a/_test/test_float.py +++ b/_test/test_float.py @@ -134,6 +134,17 @@ class TestFloat: - 250e6 """) + def test_round_trip_exp_05(self): + data = round_trip("""\ + - 3.0517578123e-56 + - 3.0517578123E-56 + - 3.0517578123e-056 + - 3.0517578123E-056 + """) + print(data) + for d in data: + assert 3.0517578122e-56 < d < 3.0517578124e-56 + def test_yaml_1_1_no_dot(self): with pytest.warns(MantissaNoDotYAML1_1Warning): round_trip_load("""\ |