Sha256: 95408d35871f6e2744e6e5510e921abe4bf90e8c105042f5e4d13f0a20155651

Contents?: true

Size: 372 Bytes

Versions: 34

Compression:

Stored size: 372 Bytes

Contents

require 'spec_helper'

describe V8::C::Array do
  it "can store and retrieve a value" do
    o = V8::C::Object::New()
    a = V8::C::Array::New()
    a.Length().should eql 0
    a.Set(0, o)
    a.Length().should eql 1
    a.Get(0).Equals(o).should be_true
  end

  it "can be initialized with a length" do
    a = V8::C::Array::New(5)
    a.Length().should eql 5
  end
end

Version data entries

34 entries across 34 versions & 7 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/therubyracer-0.12.2/spec/c/array_spec.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/therubyracer-0.11.4/spec/c/array_spec.rb
therubyracer-tmpfork-0.12.2 spec/c/array_spec.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/therubyracer-0.12.2/spec/c/array_spec.rb
therubyracer-0.12.2 spec/c/array_spec.rb
therubyracer-0.12.1 spec/c/array_spec.rb
therubyracer-discourse-0.12.0 spec/c/array_spec.rb
therubyracer-0.12.0 spec/c/array_spec.rb
therubyracer-0.11.4 spec/c/array_spec.rb
therubyracer-0.11.3 spec/c/array_spec.rb
therubyracer-0.11.2 spec/c/array_spec.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/therubyracer-0.11.0/spec/c/array_spec.rb
therubyracer-0.11.1 spec/c/array_spec.rb
therubyracer-0.11.1beta1 spec/c/array_spec.rb
therubyracer-0.11.0 spec/c/array_spec.rb
therubyracer-0.11.0beta8-x86-freebsd-9 spec/c/array_spec.rb
therubyracer-0.11.0beta8-x86_64-linux spec/c/array_spec.rb
therubyracer-0.11.0beta8-x86-linux spec/c/array_spec.rb
therubyracer-0.11.0beta8 spec/c/array_spec.rb
therubyracer-0.11.0beta7-x86_64-linux spec/c/array_spec.rb