Skip to content
Snippets Groups Projects
Commit 0923a44f authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

A few more pattern tests.

parent 4a3e334b
No related branches found
No related tags found
No related merge requests found
......@@ -402,6 +402,8 @@ def test_xpath(instance):
xptest("string(round(0 div 0))", "NaN")
xptest("re-match(//leafE, '[0-9a-fA-F]*')")
xptest("re-match(count(//leafE), '[0-9]*')")
xptest("re-match('1.22.333', '\d{1,3}\.\d{1,3}\.\d{1,3}')")
xptest("re-match('aaax', 'a*')", False)
xptest("re-match('a\nb', '.*')", False)
xptest("re-match('a\nb', '[a-z\n]*')")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment