Sha256: eac15a5dfa58b6c6ca78ee1926c8bdde11ae8a3465c689de6f9e701788f10b6e
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
#!/usr/bin/ruby -w -I. require "#{File.dirname(__FILE__)}/../ext/xml/libxml" unless defined?(XML) 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.6 | tests/copy_bug.rb |