1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec/ext/array_spec.rb

16 lines
280 B
Ruby
Raw Normal View History

require "spec_helper"
describe V8::C::Array do
include V8::ExtSpec
it "can be instantiated" do
a = c::Array::New()
a.Length().should eql(0)
end
it "maintains referential integrity" do
v8_eval('a = []')
v8_eval('a').should be(v8_eval('a'))
end
end