blob: fb52070723e40b43d49fd36a71fda2ac9f4d6cd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
describe "String#empty?" do
it "returns true if the string has a length of zero" do
"hello".empty?.should == false
" ".empty?.should == false
"\x00".empty?.should == false
"".empty?.should == true
StringSpecs::MyString.new("").empty?.should == true
end
end
|