Sha256: 3b4e3e68b7c26293f945dca4c9e54ab6e6546116b9dd3a2f4bf014c886eba95b
Contents?: true
Size: 378 Bytes
Versions: 29
Compression:
Stored size: 378 Bytes
Contents
describe "String#casecmp" do it "returns -1 when less than other" do "a".casecmp("b").should == -1 "A".casecmp("b").should == -1 end it "returns 0 when equal to other" do "a".casecmp("a").should == 0 "A".casecmp("a").should == 0 end it "returns 1 when greater than other" do "b".casecmp("a").should == 1 "B".casecmp("a").should == 1 end end
Version data entries
29 entries across 29 versions & 1 rubygems