From 47a9461e23289e0763e97e1f72398db978478f34 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Wed, 6 Jun 2012 04:08:41 -0500 Subject: [PATCH] ensure that string can hold values outside the BMP --- spec/c/string_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 spec/c/string_spec.rb diff --git a/spec/c/string_spec.rb b/spec/c/string_spec.rb new file mode 100644 index 0000000..51af663 --- /dev/null +++ b/spec/c/string_spec.rb @@ -0,0 +1,8 @@ +require 'spec_helper' + +describe V8::C::String do + it "can hold Unicode values outside the Basic Multilingual Plane" do + string = V8::C::String::New("\u{100000}") + string.Utf8Value().should eql "\u{100000}" + end +end \ No newline at end of file