Sha256: 5deaf2fa32ab681e77ebd9748ab740c73e5432b83d86e89e1f672b4adc81f2f1
Contents?: true
Size: 420 Bytes
Versions: 22
Compression:
Stored size: 420 Bytes
Contents
require File.expand_path(::File.dirname(__FILE__) + '/../lib/xml/smart') require File.expand_path(::File.dirname(__FILE__) + '/smartrunner.rb') class TestXpathFunctions < Minitest::Test def test_xpath_functions doc = XML::Smart.open(::File.dirname(__FILE__) + "/EXAMPLE.xml") assert(doc.root.find("count(/test/names/name)") == 6.0) assert(doc.root.find("string(/test/names/name/@team)") == '0') end end
Version data entries
22 entries across 22 versions & 1 rubygems