mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add test for public_methods(false)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user