mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
*** empty log message ***
This commit is contained in:
parent
f693ee28fa
commit
ecd8ae7edc
1 changed files with 4 additions and 0 deletions
|
@ -142,6 +142,7 @@ public:
|
||||||
assertFalse(compileMatch("/para|text()")->evaluateAsBool(doc.getDocumentElement()));
|
assertFalse(compileMatch("/para|text()")->evaluateAsBool(doc.getDocumentElement()));
|
||||||
assertFalse(compileMatch("/para|@*")->evaluateAsBool(doc.getDocumentElement()));
|
assertFalse(compileMatch("/para|@*")->evaluateAsBool(doc.getDocumentElement()));
|
||||||
assertFalse(compileMatch("/para|poopsicle|comment()")->evaluateAsBool(doc.getDocumentElement()));
|
assertFalse(compileMatch("/para|poopsicle|comment()")->evaluateAsBool(doc.getDocumentElement()));
|
||||||
|
assertFalse(compileMatch("/")->evaluateAsBool(doc.getDocumentElement()));
|
||||||
} // testDocElementNotMatch
|
} // testDocElementNotMatch
|
||||||
|
|
||||||
void testAttributeMatch()
|
void testAttributeMatch()
|
||||||
|
@ -166,6 +167,9 @@ public:
|
||||||
assertFalse(compileMatch("node()")->evaluateAsBool(a1));
|
assertFalse(compileMatch("node()")->evaluateAsBool(a1));
|
||||||
assertFalse(compileMatch("*")->evaluateAsBool(a1));
|
assertFalse(compileMatch("*")->evaluateAsBool(a1));
|
||||||
assertFalse(compileMatch("pod/para/@*")->evaluateAsBool(a1));
|
assertFalse(compileMatch("pod/para/@*")->evaluateAsBool(a1));
|
||||||
|
assertFalse(compileMatch("/")->evaluateAsBool(a1));
|
||||||
|
assertFalse(compileMatch("/")->evaluateAsBool(a2));
|
||||||
|
assertFalse(compileMatch("/|comment()")->evaluateAsBool(a2));
|
||||||
|
|
||||||
assertTrue(compileMatch("@id|@name")->evaluateAsBool(a1));
|
assertTrue(compileMatch("@id|@name")->evaluateAsBool(a1));
|
||||||
assertTrue(compileMatch("@id|@name")->evaluateAsBool(a2));
|
assertTrue(compileMatch("@id|@name")->evaluateAsBool(a2));
|
||||||
|
|
Loading…
Add table
Reference in a new issue