# File test/core_test.rb, line 313 def test_source # Testing string source source = @xsa_source doc = Document.new source assert_equals doc.root.name.to_s, "xsa" # Testing IO source doc = Document.new File.new("benchmarks/project.xml") assert_equals doc.root.name.to_s, "Project" end