mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
15 lines
280 B
Ruby
15 lines
280 B
Ruby
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
|