def test_pythonvalue(self): instance = builtins.Double() assert instance.pythonvalue('10') == float('10') assert instance.pythonvalue('12') == float(12) assert instance.pythonvalue('-0') == float(0) assert instance.pythonvalue('0') == float(0)
def test_xmlvalue(self): instance = builtins.Double() assert instance.xmlvalue(float(10)) == '10.0' assert instance.xmlvalue(float(3.9999)) == '3.9999' assert instance.xmlvalue(float(12.78e-2)) == '0.1278'