Sha256: 7a5ca2f0dfcf03431789dc38cc15c57ce9b6f62b6dceec82579bdd5dbe6bdc9d
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
require 'rubygems' require 'spec' dir = File.dirname(__FILE__) require File.expand_path("#{dir}/spec_helper") require File.expand_path("#{dir}/../lib/fjson") describe "String when not supporting unicode and KCODE is not UTF8 json" do setup do JSON.support_unicode = true $KCODE = "" end it "should let high values pass through when " + "not supporting unicode and KCODE is not UTF8" do val = [0xcf].pack("U") JSON.utf8_to_json(val).should == "\303\217" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fjson-0.1.2 | spec/string_when_not_supporting_unicode_and_kcode_is_not_utf8_json_spec.rb |