Sha256: 3ab4cc62210658fbf355e242840d1dc63e32dd42259c0ffec919f5aa598eb740

Contents?: true

Size: 316 Bytes

Versions: 15

Compression:

Stored size: 316 Bytes

Contents

describe "Array#inspect" do
  it "returns a String" do
    [1, 2, 3].inspect.should be_kind_of(String)
  end

  it "returns '[]' for an empty Array" do
    [].inspect.should == "[]"
  end

  it "calls inspect on its elements and joins the results with commas" do
    [0, 1, 2].inspect.should == "[0, 1, 2]"
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
opal-0.3.41 spec/core/array/inspect_spec.rb
opal-0.3.40 spec/core/array/inspect_spec.rb
opal-0.3.39 spec/core/array/inspect_spec.rb
opal-0.3.38 spec/core/array/inspect_spec.rb
opal-0.3.37 spec/core/array/inspect_spec.rb
opal-0.3.36 spec/core/array/inspect_spec.rb
opal-0.3.35 spec/core/array/inspect_spec.rb
opal-0.3.34 spec/core/array/inspect_spec.rb
opal-0.3.33 spec/core/array/inspect_spec.rb
opal-0.3.32 spec/core/array/inspect_spec.rb
opal-0.3.31 spec/core/array/inspect_spec.rb
opal-0.3.30 spec/core/array/inspect_spec.rb
opal-0.3.29 spec/core/array/inspect_spec.rb
opal-0.3.28 spec/core/array/inspect_spec.rb
opal-0.3.27 spec/core/array/inspect_spec.rb