mruby-kernel-ext/test: skip some tests that related to alias callee.

The last commit changed the behavior of aliases, and we no longer keep
the alias name symbol but the original name. Since this is a small
incompatibility from CRuby and it requires some memory to fix this, we
keep this issue right now.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-11-19 23:18:53 +09:00
parent f2dc76e3b5
commit 53a8472e5e
+6 -4
View File
@@ -50,17 +50,19 @@ assert('Kernel#__method__') do
assert_equal(:m2, c.new.m4)
end
# CRuby __callee__ always gives the calling method name
# mruby __callee__ gives the original method name for aliases
assert('Kernel#__callee__') do
c = Class.new do
def m1; __callee__ end
define_method(:m2) {__callee__}
alias m3 m1
alias_method :m4, :m2
# alias m3 m1
# alias_method :m4, :m2
end
assert_equal(:m1, c.new.m1)
assert_equal(:m2, c.new.m2)
assert_equal(:m3, c.new.m3)
assert_equal(:m4, c.new.m4)
# assert_equal(:m3, c.new.m3)
# assert_equal(:m4, c.new.m4)
end
assert('Kernel#Integer') do