Sha256: ec15601b7e869b8a9f02c3819cedefabb7dc58cc364d859f32bac84fb4fd3043

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 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) # 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.6.0 test/ets_copy_bug.rb
libxml-ruby-0.6.0-x86-mswin32-60 test/ets_copy_bug.rb