Sha256: 4a4f8f693e905dbb756b5152b3981b6cc66dae31a8c40fb241bd1ef840107911

Contents?: true

Size: 235 Bytes

Versions: 29

Compression:

Stored size: 235 Bytes

Contents

describe "Range#end" do
  it "end returns the last element of self" do
    (-1..1).end.should == 1
    (0..1).end.should == 1
    ("A".."Q").end.should == "Q"
    ("A"..."Q").end.should == "Q"
    (0.5..2.4).end.should == 2.4
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
opal-0.4.4 spec/rubyspec/core/range/end_spec.rb
opal-0.4.3 spec/rubyspec/core/range/end_spec.rb
opal-0.4.2 spec/rubyspec/core/range/end_spec.rb
opal-0.4.1 spec/rubyspec/core/range/end_spec.rb
opal-0.4.0 spec/rubyspec/core/range/end_spec.rb
opal-0.3.44 spec/rubyspec/core/range/end_spec.rb
opal-0.3.43 spec/rubyspec/core/range/end_spec.rb
opal-0.3.42 spec/core/range/end_spec.rb
opal-0.3.41 spec/core/range/end_spec.rb
opal-0.3.40 spec/core/range/end_spec.rb
opal-0.3.39 spec/core/range/end_spec.rb
opal-0.3.38 spec/core/range/end_spec.rb
opal-0.3.37 spec/core/range/end_spec.rb
opal-0.3.36 spec/core/range/end_spec.rb
opal-0.3.35 spec/core/range/end_spec.rb
opal-0.3.34 spec/core/range/end_spec.rb
opal-0.3.33 spec/core/range/end_spec.rb
opal-0.3.32 spec/core/range/end_spec.rb
opal-0.3.31 spec/core/range/end_spec.rb
opal-0.3.30 spec/core/range/end_spec.rb