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
therubyracer-0.11.0beta7-x86-linux spec/c/array_spec.rb
therubyracer-0.11.0beta7-x86_64-darwin-10 spec/c/array_spec.rb
therubyracer-0.11.0beta7 spec/c/array_spec.rb
therubyracer-0.11.0beta6-x86-linux spec/c/array_spec.rb
therubyracer-0.11.0beta6-x86_64-linux spec/c/array_spec.rb
therubyracer-0.11.0beta6 spec/c/array_spec.rb
therubyracer-0.11.0beta5-x86-linux spec/c/array_spec.rb
therubyracer-0.11.0beta5 spec/c/array_spec.rb
therubyracer-0.11.0beta5-x86_64-linux spec/c/array_spec.rb
therubyracer-0.11.0beta4 spec/c/array_spec.rb
therubyracer-0.11.0beta3 spec/c/array_spec.rb
therubyracer-0.11.0beta2-x86_64-linux spec/c/array_spec.rb
therubyracer-0.11.0beta2 spec/c/array_spec.rb
therubyracer-0.11.0beta1 spec/c/array_spec.rb