Ejemplo n.º 1
0
 def testNoDanglingPoint(self) -> None:
     """confirms the fix for https://github.com/RDFLib/rdflib/issues/237"""
     vv = Literal("0.88", datatype=_XSD_DOUBLE)
     out = vv._literal_n3(use_plain=True)
     self.assertTrue(out in ["8.8e-01", "0.88"], out)
Ejemplo n.º 2
0
 def testNoDanglingPoint(self):
     """confirms the fix for https://github.com/RDFLib/rdflib/issues/237"""
     vv = Literal("0.88", datatype=_XSD_DOUBLE)
     out = vv._literal_n3(use_plain=True)
     self.assert_(out in ["8.8e-01", "0.88"], out)