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-3.3.2.beta.2 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.3.2.beta.1 spec/framework_spec/app/spec/core/array/empty_spec.rb
opal-0.3.16 core_spec/core/array/empty_spec.rb
opal-0.3.15 runtime/spec/core/array/empty_spec.rb
rhodes-3.3.1 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.3.0 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.3.0.beta.3 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.3.0.beta.2 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.3.0.beta.1 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.3 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.2 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.2.beta spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.1 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.0 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.0.beta.9 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.0.beta.8 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.0.beta.7 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.0.beta.6 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.0.beta.5 spec/framework_spec/app/spec/core/array/empty_spec.rb
rhodes-3.2.0.beta.4 spec/framework_spec/app/spec/core/array/empty_spec.rb