diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-12-08 23:36:50 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-12-08 23:36:50 -0800 |
commit | 0ce27f29202be406a41fce56d38d6da6c7715afd (patch) | |
tree | 2c5417be6e9858fbd53710f6f7c11bd5d95b2c53 /spec | |
parent | fadb3e607a15636c36c06db84b2e00559bc8bdff (diff) | |
download | ffi-yajl-0ce27f29202be406a41fce56d38d6da6c7715afd.tar.gz |
bignum parsing working
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ffi_yajl/json_gem_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/ffi_yajl/json_gem_spec.rb b/spec/ffi_yajl/json_gem_spec.rb index a55cd98..df7d0a5 100644 --- a/spec/ffi_yajl/json_gem_spec.rb +++ b/spec/ffi_yajl/json_gem_spec.rb @@ -213,8 +213,15 @@ describe "JSON Gem Compat API" do expect(0x7f.chr.to_json).to eq( %Q{"#{0x7f.chr}"} ) end + context "when dealing with bignums" do + let(:ruby) { [ 12345678901234567890 ] } + let(:json) { "[12345678901234567890]" } - context"when dealing with common UTF-8 symbols" do + it_behaves_like "handles encoding and parsing correctly" + end + + + context "when dealing with common UTF-8 symbols" do let(:ruby) { [ "© ≠ €! \01" ] } let(:json) { "[\"© ≠ €! \\u0001\"]" } |