summaryrefslogtreecommitdiffhomepage
path: root/test/t
diff options
context:
space:
mode:
Diffstat (limited to 'test/t')
-rw-r--r--test/t/kernel.rb5
1 files changed, 5 insertions, 0 deletions
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'