Sha256: c0d27cc5455b169439e45d76a0e3ccde40bda7b2f3a0614009eddcc9399f7ad9

Contents?: true

Size: 301 Bytes

Versions: 62

Compression:

Stored size: 301 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)

describe "Array#empty?" do
  it "returns true if the array has no elements" do
    [].empty?.should == true
    [1].empty?.should == false
    [1, 2].empty?.should == false
  end
end

Version data entries

62 entries across 62 versions & 3 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/array/empty_spec.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/array/empty_spec.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/array/empty_spec.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/array/empty_spec.rb
opal-0.4.4 spec/rubyspec/core/array/empty_spec.rb
opal-0.4.3 spec/rubyspec/core/array/empty_spec.rb
opal-0.4.2 spec/rubyspec/core/array/empty_spec.rb