diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-01 11:20:30 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-01 11:20:30 +0900 |
| commit | b80e0ef7428b613a682da4d2a251c8beb24d6dd2 (patch) | |
| tree | d47427ac2f9bb454f9a47b79d6767ee27bd0c8f0 /test/t/kernel.rb | |
| parent | 593c12a5cd670cfdb45741377236207a56541d37 (diff) | |
| download | mruby-b80e0ef7428b613a682da4d2a251c8beb24d6dd2.tar.gz mruby-b80e0ef7428b613a682da4d2a251c8beb24d6dd2.zip | |
Move `Kernel#send` to `mruby-metaprog` gem.
But `BasicObject#__send__` is still available from the core.
Diffstat (limited to 'test/t/kernel.rb')
| -rw-r--r-- | test/t/kernel.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/t/kernel.rb b/test/t/kernel.rb index 9744bddba..a730bdb24 100644 --- a/test/t/kernel.rb +++ b/test/t/kernel.rb @@ -92,20 +92,6 @@ assert('Kernel#__id__', '15.3.1.3.3') do assert_equal Fixnum, __id__.class end -assert('Kernel#__send__', '15.3.1.3.4') do - # test with block - l = __send__(:lambda) do - true - end - - assert_true l.call - assert_equal Proc, l.class - # test with argument - assert_true __send__(:respond_to?, :nil?) - # test without argument and without block - assert_equal String, __send__(:to_s).class -end - assert('Kernel#block_given?', '15.3.1.3.6') do def bg_try(&b) if block_given? @@ -440,20 +426,6 @@ assert('Kernel#respond_to?', '15.3.1.3.43') do assert_false Test4RespondTo.new.respond_to?(:test_method) end -assert('Kernel#send', '15.3.1.3.44') do - # test with block - l = send(:lambda) do - true - end - - assert_true l.call - assert_equal l.class, Proc - # test with argument - assert_true send(:respond_to?, :nil?) - # test without argument and without block - assert_equal send(:to_s).class, String -end - assert('Kernel#to_s', '15.3.1.3.46') do assert_equal to_s.class, String end |
