Sha256: 4deccaa96e3ec743bacc7a82c49b1fcf99c64c0e5d6f4f3052be3a83c05bf224

Contents?: true

Size: 407 Bytes

Versions: 16

Compression:

Stored size: 407 Bytes

Contents

require 'xml'

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.copy(true)) # 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

16 entries across 16 versions & 1 rubygems

Version Path
libxml-ruby-0.8.2 test/ets_copy_bug.rb
libxml-ruby-0.8.2-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.9.3-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.9.1 test/ets_copy_bug.rb
libxml-ruby-0.9.0 test/ets_copy_bug.rb
libxml-ruby-0.9.0-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.9.1-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.9.2 test/ets_copy_bug.rb
libxml-ruby-0.9.2-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.8.3 test/ets_copy_bug.rb
libxml-ruby-0.8.3-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.9.3 test/ets_copy_bug.rb
libxml-ruby-0.9.5-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.9.5 test/ets_copy_bug.rb
libxml-ruby-0.9.4 test/ets_copy_bug.rb
libxml-ruby-0.9.4-x86-mswin32-60 test/ets_copy_bug.rb