Sha256: 601f949295fc1ce23f99de87edfaea82c010a9a7204de6549f29c3a7f8f80581
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
#!/usr/bin/ruby -w -I. def test( doc2 ) doc = XML::Document.new('1.0') doc.root = XML::Node.new("ccc") doc.root['aaa'] = 'aaa' doc.root.child_add(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| print "\r#{i}"; $stdout.flush test2 }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.5.4 | test/ets_copy_bug.rb |
libxml-ruby-0.5.3 | test/ets_copy_bug.rb |