Sha256: 6bfb6d8d5cbd1ec1d885e5421fc54c86c9a1756e634c786797ec84f69c50d65a
Contents?: true
Size: 435 Bytes
Versions: 3
Compression:
Stored size: 435 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../spec_helper") describe Array do it "should be able to determine its dimensions" do [1,2,3].dimensions.should eql(1) [[1,2,3], [1,2,3]].dimensions.should eql(2) [[[1,2,3], [1,2,3]], [[1,2,3], [1,2,3], [[1,2,3], [1,2,3]]]].dimensions.should eql(3) end it "should depend on the first element to determine dimensions" do [1, [1,2]].dimensions.should eql(1) end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
davidrichards-data_frame-0.0.19 | spec/ext/array_spec.rb |
davidrichards-data_frame-0.0.20 | spec/ext/array_spec.rb |
data_frame-0.1.8 | spec/ext/array_spec.rb |