# File test/xpath_test.rb, line 116 def test_abbreviated_step c = XPath::first( @@doc, "a/b/c" ) assert_equal "a", XPath::first(@@doc.root, ".").name assert_equal "b", XPath::first(c, "..").name assert_equal "a", XPath::first(@@doc, "a/b/..").name doc = REXML::Document.new File.new("benchmarks/project.xml") each_test(doc.root, "./Description",1 ) { |child| assert_equal "Description",child.name } end