summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/symbol.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/t/symbol.rb b/test/t/symbol.rb
index 9059f45c2..fdce0f378 100644
--- a/test/t/symbol.rb
+++ b/test/t/symbol.rb
@@ -28,3 +28,7 @@ end
assert('Symbol#to_sym', '15.2.11.3.4') do
assert_equal :abc, :abc.to_sym
end
+
+assert('Symbol#to_proc') do
+ assert_equal 5, :abs.to_proc[-5]
+end