get method name out from method_missing

This commit is contained in:
2019-09-17 20:18:00 +03:00
parent d58ed8e5e8
commit e56db0a3ac
9 changed files with 31 additions and 16 deletions

View File

@ -13,7 +13,7 @@ module RubyX
end
class Object
def method_missing(at)
X.method_missing
X.method_missing(:r1)
end
end
GET
@ -28,7 +28,7 @@ GET
assert_equal Mom::MethodMissing , compiler.mom_instructions.next.class
end
def test_risc
assert_equal 14 , compiler.to_risc.risc_instructions.length
assert_equal 15 , compiler.to_risc.risc_instructions.length
end
end
end