diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-17 02:18:01 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-17 02:18:01 +0000 |
commit | cb3c134422197f6de5bad718bb4f5baf96828f4c (patch) | |
tree | 1c20e7eb714fcf1c2ade8243ad34a8512ee062f2 /test | |
parent | 8bbd5d8f0bc287f2059360308db497109537f63d (diff) | |
download | ruby-cb3c134422197f6de5bad718bb4f5baf96828f4c.tar.gz ruby-cb3c134422197f6de5bad718bb4f5baf96828f4c.tar.xz ruby-cb3c134422197f6de5bad718bb4f5baf96828f4c.zip |
* 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
Diffstat (limited to 'test')
-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 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 |