diff markup/tests/path.py @ 163:9df6f057efd3

Support for XPath number literals including decimal places.
author cmlenz
date Wed, 16 Aug 2006 23:03:58 +0000
parents f767cf98e3e3
children 110f90a0637c
line wrap: on
line diff
--- a/markup/tests/path.py
+++ b/markup/tests/path.py
@@ -345,6 +345,10 @@
         xml = XML('<root><foo>bar</foo></root>')
         path = Path('*[number("3.0")=3]')
         self.assertEqual('<foo>bar</foo>', path.select(xml).render())
+        path = Path('*[number("3.0")=3.0]')
+        self.assertEqual('<foo>bar</foo>', path.select(xml).render())
+        path = Path('*[number("0.1")=.1]')
+        self.assertEqual('<foo>bar</foo>', path.select(xml).render())
 
     def test_predicate_round_function(self):
         xml = XML('<root><foo>bar</foo></root>')
Copyright (C) 2012-2017 Edgewall Software