Sha256: c75325ff8bb658a273b73f0a2f840093e142a2ffff6fa137bd7583a53b0040d4

Contents?: true

Size: 190 Bytes

Versions: 25

Compression:

Stored size: 190 Bytes

Contents

describe "String#empty?" do
  it "returns true if the string has a length of zero" do
    "hello".empty?.should == false
    " ".empty?.should == false
    "".empty?.should == true
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
opal-0.3.29 spec/core/string/empty_spec.rb
opal-0.3.28 spec/core/string/empty_spec.rb
opal-0.3.27 spec/core/string/empty_spec.rb
opal-0.3.26 spec/core/string/empty_spec.rb
opal-0.3.25 spec/core/string/empty_spec.rb