summaryrefslogtreecommitdiff
path: root/test/ruby/test_range.rb
blob: 66ed555887733ab337cb3b56fc947504d470a3a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'test/unit'

class TestRange < Test::Unit::TestCase
  def test_range_string
    # XXX: Is this really the test of Range?
    assert_equal([], ("a" ... "a").to_a)
    assert_equal(["a"], ("a" .. "a").to_a)
    assert_equal(["a"], ("a" ... "b").to_a)
    assert_equal(["a", "b"], ("a" .. "b").to_a)
  end
end