From c7d278adb9356e78465de640f9a41cdc0fd1f09a Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 17 Oct 2003 02:18:01 +0000 Subject: * test/ruby/test_range.rb: added. * MANIFEST: add test/ruby/test_range.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_range.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/ruby/test_range.rb (limited to 'test/ruby') 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 -- cgit v1.2.3