From 1aa9f30dd584027344ce316e66eda22a2ecd74ff Mon Sep 17 00:00:00 2001 From: Todd Ditchendorf Date: Thu, 3 Jul 2014 11:29:15 -0500 Subject: [PATCH] * tests --- test/XPLocationPathLibxmlTest.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/XPLocationPathLibxmlTest.m b/test/XPLocationPathLibxmlTest.m index b2714a5..dd02323 100644 --- a/test/XPLocationPathLibxmlTest.m +++ b/test/XPLocationPathLibxmlTest.m @@ -2119,4 +2119,22 @@ - (void)testSlashSlashAtStarSlashSelfStar { TDFalse([enm hasMoreObjects]); } + +- (void)testSlashSlashNamespaceStarSlashSelfNode { + [self eval:@"//namespace::*/self::node()"]; + + id enm = [_res enumerate]; + + TDTrue([enm hasMoreObjects]); +} + + +- (void)testSlashSlashNamespaceStarSlashSelfStar { + [self eval:@"//namespace::*/self::*"]; + + id enm = [_res enumerate]; + + TDFalse([enm hasMoreObjects]); +} + @end