File: remove_test.rb

package info (click to toggle)
ruby-libxml 2.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,024 kB
  • ctags: 2,251
  • sloc: xml: 9,628; ansic: 8,409; ruby: 7,806; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 198 bytes parent folder | download
1
2
3
4
5
6
7
8
9
require './test_helper'

1000000.times do
  doc = XML::Document.string('<foo><bar/><baz/></foo>')
 #puts doc.root
  node = doc.root.first.remove!
  doc.root.last.next = node
  node = nil
end