From cb3c134422197f6de5bad718bb4f5baf96828f4c 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: http://svn.ruby-lang.org/repos/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') diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb new file mode 100644 index 000000000..0b79f5f09 --- /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