blob: 11f4637a33f6ab629e4b9b1297e7e5bf58881dce [file] [log] [blame]
PASS //item[@id >= 2 and @id <= "4"]
PASS //item[@id >= 2 and @id <= 3]
PASS doc.evaluate("position(1)", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS doc.evaluate("not()", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS string-length(100)
PASS doc.evaluate("count(100)", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS doc.evaluate("adumbrate()", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS //item[@id mod 2 = 0] | //item[@id mod 3 = 0]
PASS doc.evaluate("//item | 42", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS doc.evaluate("/doc/(item[@id = 2] | item[@id = 6])/@id", doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS doc.evaluate('"monty"/anaconda', doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS doc.evaluate('/doc/string(item[@id = 2])/@id', doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS doc.evaluate('(1)[1]', doc.documentElement, null, XPathResult.ANY_TYPE, null) threw exception SyntaxError: The string did not match the expected pattern..
PASS (1)
PASS ((1 + 1))
PASS 1 or 1
PASS 1 or 0
PASS 0 or 1
PASS 0 or 0
PASS 1 and 1
PASS 1 and 0
PASS 0 and 1
PASS 0 and 0
PASS (//set[@id=1]/*) = (//set[@id=3]/*)
PASS (//set[@id=1]/*) = (//set[@id=2]/*)
PASS (//set[@id=1]/*) != (//set[@id=1]/*)
PASS (//set[@id=4]/*) != (//set[@id=4]/*)
PASS (//set[@id=1]/*) <= (//set[@id=2]/*)
PASS (//set[@id=2]/*) <= (//set[@id=1]/*)
PASS (//set[@id=1]/*) < (//set[@id=2]/*)
PASS (//set[@id=2]/*) < (//set[@id=1]/*)
PASS (//set[@id=2]/*) > (//set[@id=1]/*)
PASS (//set[@id=1]/*) > (//set[@id=2]/*)
PASS (//set[@id=2]/*) >= (//set[@id=1]/*)
PASS (//set[@id=1]/*) >= (//set[@id=2]/*)
PASS (//set[@id=4]/*) = (1 = 1)
PASS (//set[@id=4]/*) = (1 = 0)
PASS (//set[@id=4]/*) != (1 = 0)
PASS (//set[@id=4]/*) != (1 = 1)
PASS (//set[@id=4]/*) = 42
PASS (//set[@id=4]/*) = 43
PASS (//set[@id=4]/*) != 43
PASS (//set[@id=4]/*) != 42
PASS (//set[@id=4]/*) = "42.0"
PASS (//set[@id=4]/*) = "42"
PASS (//set[@id=4]/*) != "42"
PASS (//set[@id=4]/*) != "42.0"
PASS "a" <= "a"
PASS "a" <= "b"
PASS "a" >= "a"
PASS "b" > "a"
PASS 1 <= 1
PASS 2 <= 1
PASS 1 < 2
PASS 1 < 1
PASS 1 >= 1
PASS 1 >= 2
PASS 2 > 1
PASS 1 > 1
PASS successfullyParsed is true
TEST COMPLETE