fix mod4 name

really did div4
This commit is contained in:
Torsten Ruger
2018-04-19 10:00:55 +03:00
parent 8e1efa3993
commit 3a50b7dd0e
21 changed files with 41 additions and 39 deletions

View File

@ -7,7 +7,7 @@ module Vool
def setup
Risc.machine.boot
@ins = compile_first_method( "a = 5; a.mod4")
@ins = compile_first_method( "a = 5; a.div4")
end
def test_check_type
assert_equal NotSameCheck , @ins.next.class , @ins

View File

@ -8,13 +8,13 @@ module Vool
def setup
Risc.machine.boot
@ins = compile_first_method( "5.mod4")
@ins = compile_first_method( "5.div4")
end
def receiver
[Mom::IntegerConstant , 5]
end
def test_call_has_right_method
assert_equal :mod4, @ins.next(2).method.name
assert_equal :div4, @ins.next(2).method.name
end
end

View File

@ -8,7 +8,7 @@ module Vool
def setup
Risc.machine.boot
@ins = compile_first_method( "5.mod4(1,2)")
@ins = compile_first_method( "5.div4(1,2)")
end
def receiver