Sha256: cba7bd148777985afc1e764da9996771564a28b4763a32769f88a555bd9ecf22
Contents?: true
Size: 479 Bytes
Versions: 34
Compression:
Stored size: 479 Bytes
Contents
#!/usr/bin/env ruby -wW1 $: << '../lib' $: << '../ext' if __FILE__ == $0 if (i = ARGV.index('-I')) x,path = ARGV.slice!(i, 2) $: << path end end require 'ox' def oxpoo(cnt = 100000) xml = "<?xml version=\"1.0\"?>\n<a>\n <m>inc</m>\n <i>1</i>\n</a>\n" cnt.times do |i| obj = Ox.load(xml, :mode => :object) #puts "#{obj} (#{obj.class})" raise "decode ##{i} not equal; #{obj.inspect} != '#{[:inc, 1] }'" unless [:inc, 1] == obj end end oxpoo()
Version data entries
34 entries across 34 versions & 1 rubygems