use method missing in resolve method

not just exit
try to print name next
This commit is contained in:
2019-09-15 15:13:11 +03:00
parent 7ee57f2b08
commit d913bb01de
14 changed files with 63 additions and 50 deletions

View File

@ -28,7 +28,7 @@ GET
assert_equal Mom::MethodMissing , compiler.mom_instructions.next.class
end
def test_risc
assert_equal 42 , compiler.to_risc.risc_instructions.length
assert_equal 21 , compiler.to_risc.risc_instructions.length
end
end
end

View File

@ -23,7 +23,7 @@ module RubyX
end
def test_asm_len
linker = @collection.translate(:interpreter)
assert_equal 2 , linker.assemblers.length
assert_equal 3 , linker.assemblers.length
end
end
class TestRubyXCompilerParfait < MiniTest::Test

View File

@ -36,7 +36,7 @@ module RubyX
assert_equal 2 , compiler.vool.length
linker = compiler.to_binary(:interpreter)
assert_equal Risc::Linker , linker.class
assert_equal 3 , linker.assemblers.length
assert_equal 4 , linker.assemblers.length
end
end
end