blob: 0b79f5f0988935800d3caf91b69de3d5e3f56e0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require 'test/unit'
$KCODE = 'none'
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
|