summaryrefslogtreecommitdiffhomepage
path: root/test/t/kernel.rb
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-02 17:25:34 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-02 17:25:34 +0900
commitf78d2fad31a2e524da6d9975872240c695f7c124 (patch)
tree1d67b97cfcedeba4dfc3941701d49c3fc6d38d24 /test/t/kernel.rb
parente65d4938f373132f2ab5c75533e0bd18e188f9bc (diff)
parent7752d2ab43088aeb5e43d1dab764cba7428cd40c (diff)
downloadmruby-f78d2fad31a2e524da6d9975872240c695f7c124.tar.gz
mruby-f78d2fad31a2e524da6d9975872240c695f7c124.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'test/t/kernel.rb')
-rw-r--r--test/t/kernel.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/t/kernel.rb b/test/t/kernel.rb
index cd1f2d99e..847f1baeb 100644
--- a/test/t/kernel.rb
+++ b/test/t/kernel.rb
@@ -112,7 +112,17 @@ assert('Kernel#respond_to?', '15.3.1.2.43') do
respond_to? :nil?
end
-# TODO at the moment doesn't comply to ISO assert('Kernel#send', '15.3.1.2.44') do
+assert('Kernel#send', '15.3.1.2.44') do
+ # test with block
+ l = send(:lambda) do
+ true
+ end
+ l.call and l.class == Proc and
+ # test with argument
+ send(:respond_to?, :nil?) and
+ # test without argument and without block
+ send(:public_methods).class == Array
+end
assert('Kernel#singleton_methods', '15.3.1.2.45') do
singleton_methods.class == Array