Skip to content

Commit

Permalink
* tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itod committed Jul 3, 2014
1 parent bb3abc1 commit 1aa9f30
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/XPLocationPathLibxmlTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -2119,4 +2119,22 @@ - (void)testSlashSlashAtStarSlashSelfStar {
TDFalse([enm hasMoreObjects]);
}


- (void)testSlashSlashNamespaceStarSlashSelfNode {
[self eval:@"//namespace::*/self::node()"];

id <XPNodeEnumeration>enm = [_res enumerate];

TDTrue([enm hasMoreObjects]);
}


- (void)testSlashSlashNamespaceStarSlashSelfStar {
[self eval:@"//namespace::*/self::*"];

id <XPNodeEnumeration>enm = [_res enumerate];

TDFalse([enm hasMoreObjects]);
}

@end

0 comments on commit 1aa9f30

Please sign in to comment.