diff options
Diffstat (limited to 'test/ruby/test_range.rb')
-rw-r--r-- | test/ruby/test_range.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb index 94e6583d22..69eba88455 100644 --- a/test/ruby/test_range.rb +++ b/test/ruby/test_range.rb @@ -18,6 +18,10 @@ class TestRange < Test::Unit::TestCase assert_equal(["9", "10"], ("9"..SimpleDelegator.new("10")).to_a) end + def test_range_symbol + assert_equal([:a, :b], (:a .. :b).to_a) + end + def test_evaluation_order arr = [1,2] r = (arr.shift)..(arr.shift) |