summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2013-12-08 23:36:50 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2013-12-08 23:36:50 -0800
commit0ce27f29202be406a41fce56d38d6da6c7715afd (patch)
tree2c5417be6e9858fbd53710f6f7c11bd5d95b2c53 /spec
parentfadb3e607a15636c36c06db84b2e00559bc8bdff (diff)
downloadffi-yajl-0ce27f29202be406a41fce56d38d6da6c7715afd.tar.gz
bignum parsing working
Diffstat (limited to 'spec')
-rw-r--r--spec/ffi_yajl/json_gem_spec.rb9
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\"]" }