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

@ -14,7 +14,7 @@ module Mom
assert_equal Risc::MethodCompiler , @method.to_risc.class
end
def test_risc_length
assert_equal 42 , @method.to_risc.risc_instructions.length
assert_equal 21 , @method.to_risc.risc_instructions.length
end
end
end

View File

@ -12,13 +12,16 @@ module Mom
assert_equal MomCollection , @comp.class
end
def test_compilers
assert_equal 2 , @comp.compilers.length
assert_equal 3 , @comp.compilers.length
end
def test_init_compilers
assert_equal Array , @comp.init_compiler.class
end
def test_init_compiler
assert_equal Mom::MethodCompiler , @comp.init_compiler.class
assert_equal Mom::MethodCompiler , @comp.init_compiler.first.class
end
def test_compilers_bare
assert_equal 1 , MomCollection.new.compilers.length
assert_equal 2 , MomCollection.new.compilers.length
end
def test_append_class
assert_equal MomCollection, (@comp.append @comp).class
@ -42,7 +45,7 @@ module Mom
end
def test_has_risc_compiler
assert_equal Risc::MethodCompiler, compiler.class
assert_equal 2, @collection.method_compilers.length
assert_equal 3, @collection.method_compilers.length
end
def test_has_risc_instructions
assert_equal Risc::Label, compiler.risc_instructions.class