Sha256: 542ccfb9dd97c9b2a877ac7f67f586103f1bb0f90541da92493f587668700f08

Contents?: true

Size: 246 Bytes

Versions: 4

Compression:

Stored size: 246 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
    StringSpecs::MyString.new("").empty?.should == true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-0.3.22 spec/core/string/empty_spec.rb
opal-0.3.21 test/core/string/empty_spec.rb
opal-0.3.20 test/core/string/empty_spec.rb
opal-0.3.19 test/core/string/empty_spec.rb