diff options
Diffstat (limited to 'test/ruby/test_range.rb')
-rw-r--r-- | test/ruby/test_range.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb new file mode 100644 index 0000000000..0b79f5f098 --- /dev/null +++ b/test/ruby/test_range.rb @@ -0,0 +1,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 |