Sha256: bec85d0d70ccd32fbd99438926a1de36876315a2321fcfebbce9718a6fc749fa
Contents?: true
Size: 393 Bytes
Versions: 1
Compression:
Stored size: 393 Bytes
Contents
#!/usr/bin/ruby -w -I. require "libxml_test" def test( doc2 ) doc = XML::Document.new('1.0') doc.root = XML::Node.new("ccc") doc.root['aaa'] = 'aaa' #doc.root << doc2.root # BUG! doc.root << doc2.root.copy(true) return doc end def test2 doc2 = XML::Document.new('1.0') doc2.root = XML::Node.new("aaa") test( doc2 ) end 1000.times { |i| puts i.to_s test2 }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.3.8 | tests/copy_bug.rb |