Sha256: a4eb3169f91ff7aafa3bebd9f446387b49fa4798ec2adc2d2bc1eab3635bfe13

Contents?: true

Size: 210 Bytes

Versions: 70

Compression:

Stored size: 210 Bytes

Contents

require 'spec_helper'

describe V8::C::String do
  include V8::ExtSpec
  
  describe "a string with null bytes" do
    subject {c::String::New("foo\0bar")}
    its(:Utf8Value) {should eql "foo\0bar"}
  end
end

Version data entries

70 entries across 70 versions & 5 rubygems

Version Path
therubyracer-0.9.6 spec/ext/string_spec.rb
therubyracer-0.9.5 spec/ext/string_spec.rb
therubyracer-0.9.4 spec/ext/string_spec.rb
therubyracer-0.9.3 spec/ext/string_spec.rb
therubyracer-0.9.3beta1 spec/ext/string_spec.rb
therubyracer-0.9.2 spec/ext/string_spec.rb
therubyracer-0.9.2beta1 spec/ext/string_spec.rb
therubyracer-0.9.1 spec/ext/string_spec.rb
therubyracer-0.9.1beta1 spec/ext/string_spec.rb
therubyracer-0.9.0 spec/ext/string_spec.rb