From 8a15ab0c0cd8cd71cf315b6a2e40780cbf213cf1 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sat, 18 Jun 2016 01:21:21 +0900 Subject: add test for public_methods(false) --- test/t/kernel.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/t/kernel.rb b/test/t/kernel.rb index 6df2294d5..927166283 100644 --- a/test/t/kernel.rb +++ b/test/t/kernel.rb @@ -423,6 +423,11 @@ end assert('Kernel#public_methods', '15.3.1.3.38') do assert_equal Array, public_methods.class + class Foo + def foo + end + end + assert_equal [:foo], Foo.new.public_methods(false) end # Kernel#puts is defined in mruby-print mrbgem. '15.3.1.3.39' -- cgit v1.2.3