Sha256: 543aa4c6af79ca63ec109eb309c90e23754f36992181dca83bd9bc87fb933b95

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

require 'libxml'

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

6 entries across 6 versions & 1 rubygems

Version Path
libxml-ruby-0.7.0 test/ets_copy_bug.rb
libxml-ruby-0.7.0-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.8.0 test/ets_copy_bug.rb
libxml-ruby-0.8.0-x86-mswin32-60 test/ets_copy_bug.rb
libxml-ruby-0.8.1 test/ets_copy_bug.rb
libxml-ruby-0.8.1-x86-mswin32-60 test/ets_copy_bug.rb