Sha256: ff53d5ad9e2c2fae6e628f1bfd3d164f1e1bd03c2bc12231797e644321d5bd9b
Contents?: true
Size: 519 Bytes
Versions: 52
Compression:
Stored size: 519 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe "Range#exclude_end?" do it "returns true if the range exludes the end value" do (-2..2).exclude_end?.should == false ('A'..'B').exclude_end?.should == false (0.5..2.4).exclude_end?.should == false (0xfffd..0xffff).exclude_end?.should == false (0...5).exclude_end?.should == true ('A'...'B').exclude_end?.should == true (0.5...2.4).exclude_end?.should == true (0xfffd...0xffff).exclude_end?.should == true end end
Version data entries
52 entries across 52 versions & 2 rubygems