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

Version Path
ox-1.5.4 test/bug1.rb
ox-1.5.3 test/bug1.rb
ox-1.5.2 test/bug1.rb
ox-1.5.1 test/bug1.rb
ox-1.5.0 test/bug1.rb
ox-1.4.6 test/bug1.rb
ox-1.4.5 test/bug1.rb
ox-1.4.4 test/bug1.rb
ox-1.4.3 test/bug1.rb
ox-1.4.2 test/bug1.rb
ox-1.4.1 test/bug1.rb
ox-1.4.0 test/bug1.rb
ox-1.3.5 test/bug1.rb
ox-1.3.4 test/bug1.rb
ox-1.3.3 test/bug1.rb
ox-1.3.2 test/bug1.rb
ox-1.3.1 test/bug1.rb
ox-1.3.0 test/bug1.rb
ox-1.2.15 test/bug1.rb
ox-1.2.14 test/bug1.rb