Sha256: 5f4dc7ec7049290c73bb37de1ff19501635800e0743f105fa5c49e38241fd5a5

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')

describe "One-off JSON examples" do
  it "should parse 23456789012E666 and return Infinity" do
    infinity = (1.0/0)
    silence_warnings do
      Yajl::Stream.parse(StringIO.new('{"key": 23456789012E666}')).should == {"key" => infinity}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brianmario-yajl-ruby-0.4.7 spec/parsing/one_off_spec.rb
brianmario-yajl-ruby-0.4.8 spec/parsing/one_off_spec.rb