Mercurial > genshi > mirror
diff markup/tests/path.py @ 163:9c023c395e44 trunk
Support for XPath number literals including decimal places.
author | cmlenz |
---|---|
date | Wed, 16 Aug 2006 23:03:58 +0000 |
parents | 456039594db9 |
children | 1f6cb675a66c |
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>')