Sha256: 8b68bd641eab6e0532d0d3c373503698336cf079c41bba3bc18c3fa84985477f

Contents?: true

Size: 321 Bytes

Versions: 169

Compression:

Stored size: 321 Bytes

Contents

require 'test_helper'
require 'tins/xt'

module Tins
  class RangePlustTest < Test::Unit::TestCase

    def test_range_plus
      assert_equal [], (0...0) + (0...0)
      assert_equal [ 0 ], (0..0) + (0...0)
      assert_equal [ 0, 0 ], (0..0) + (0..0)
      assert_equal((1..5).to_a, (1...3) + (3..5))
    end
  end
end

Version data entries

169 entries across 151 versions & 9 rubygems

Version Path
tins-1.18.0 tests/range_plus_test.rb
tins-1.17.0 tests/range_plus_test.rb
tdiary-5.0.9 vendor/bundle/gems/tins-1.16.3/tests/range_plus_test.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/tins-0.13.2/tests/range_plus_test.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/tins-1.16.3/tests/range_plus_test.rb
tdiary-5.0.8 vendor/bundle/gems/tins-0.13.2/tests/range_plus_test.rb
tdiary-5.0.7 vendor/bundle/gems/tins-1.16.3/tests/range_plus_test.rb
tins-1.16.3 tests/range_plus_test.rb
tins-1.16.2 tests/range_plus_test.rb
tins-1.16.1 tests/range_plus_test.rb
tins-1.16.0 tests/range_plus_test.rb
tins-1.15.1 tests/range_plus_test.rb
tdiary-5.0.6 vendor/bundle/gems/tins-1.15.0/tests/range_plus_test.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/tins-1.6.0/tests/range_plus_test.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/tests/range_plus_test.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/tests/range_plus_test.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/tests/range_plus_test.rb
tins-1.15.0 tests/range_plus_test.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/tins-1.13.2/tests/range_plus_test.rb
tdiary-5.0.5 vendor/bundle/gems/tins-1.13.2/tests/range_plus_test.rb