Sha256: 766613c117396ec0221a20d2a3eb5615b3f4ba5ff8710672bd8750765d60dc5d

Contents?: true

Size: 247 Bytes

Versions: 29

Compression:

Stored size: 247 Bytes

Contents

describe "Range#begin" do
  it "returns the first element of self" do
    (-1..1).begin.should == -1
    (0..1).begin.should == 0
    ('Q'..'T').begin.should == 'Q'
    ('Q'...'T').begin.should == 'Q'
    (0.5..2.4).begin.should == 0.5
  end  
end

Version data entries

29 entries across 29 versions & 1 rubygems

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