Skip to content

Commit

Permalink
Add tests for xmlvalue for Decimals in scientific notation
Browse files Browse the repository at this point in the history
  • Loading branch information
KACAH authored and mvantellingen committed Apr 11, 2021
1 parent 63f6cc3 commit 83eefa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_xsd_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def test_xmlvalue(self):
assert instance.xmlvalue(D("10.000002")) == "10.000002"
assert instance.xmlvalue(D("10")) == "10"
assert instance.xmlvalue(D("-10")) == "-10"
assert instance.xmlvalue(D("1.1E-3")) == "0.0011"
assert instance.xmlvalue(D("1.1E+3")) == "1100"
assert instance.xmlvalue(D("1.100000000000002E-3")) == "0.001100000000000002"

def test_pythonvalue(self):
instance = builtins.Decimal()
Expand Down

0 comments on commit 83eefa2

Please sign in to comment.