Sha256: cb4a2105bf534854d3b579a2a2ca34b7b4e16ff8dd047ff7d6a46038fea7deaf
Contents?: true
Size: 596 Bytes
Versions: 3
Compression:
Stored size: 596 Bytes
Contents
require 'spec_helper' describe V8::C::String do requires_v8_context 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 it "can naturally translate ruby strings into v8 strings" do V8::C::String::Concat(V8::C::String::New("Hello "), "World").Utf8Value().should eql "Hello World" end it "can naturally translate ruby objects into v8 strings" do V8::C::String::Concat(V8::C::String::New("forty two is "), 42).Utf8Value().should eql "forty two is 42" end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
therubyracer-0.12.3 | spec/c/string_spec.rb |
therubyracer-xcode-0.12.3 | spec/c/string_spec.rb |
therubyracer-xcode-0.12.2 | spec/c/string_spec.rb |