Sha256: 84e871ee9620afeaef6e27a09a4cf3bc0eb002835201693b117fb73c4536076b

Contents?: true

Size: 269 Bytes

Versions: 29

Compression:

Stored size: 269 Bytes

Contents

describe "Infinite ranges" do
  it "supports endless ranges" do
    range = (10..)
    range.begin.should == 10
    range.end.should == nil
  end

  it "supports beginless ranges" do
    range = (..10)
    range.begin.should == nil
    range.end.should == 10
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
opal-1.4.0 spec/opal/core/language/infinite_range_spec.rb
opal-1.4.0.alpha1 spec/opal/core/language/infinite_range_spec.rb
opal-1.3.2 spec/opal/core/language/infinite_range_spec.rb
opal-1.3.1 spec/opal/core/language/infinite_range_spec.rb
opal-1.3.0 spec/opal/core/language/infinite_range_spec.rb
opal-1.3.0.rc1 spec/opal/core/language/infinite_range_spec.rb
opal-1.3.0.alpha1 spec/opal/core/language/infinite_range_spec.rb
opal-1.2.0 spec/opal/core/language/infinite_range_spec.rb
opal-1.2.0.beta1 spec/opal/core/language/infinite_range_spec.rb