And we are green again
After having over 600 failing tests at one point, this does feel good. Even better, most of the risc/interpreter tests where i didn't change anything came gree without changing the tests. ie we have binary compatibility.
This commit is contained in:
@ -10,7 +10,7 @@ module Risc
|
||||
@expect = [LoadConstant, SlotToReg, RegToSlot]
|
||||
end
|
||||
def test_send_instructions
|
||||
assert_nil msg = check_nil(produce_block) , msg
|
||||
assert_nil msg = check_nil(:main_block) , msg
|
||||
end
|
||||
def test_load_5
|
||||
produced = produce_block.next
|
||||
|
@ -16,8 +16,14 @@ module Risc
|
||||
end
|
||||
|
||||
def test_send_instructions
|
||||
assert_nil msg = check_nil , msg
|
||||
assert_nil msg = check_nil(:main) , msg
|
||||
end
|
||||
def test_load_5
|
||||
produced = produce_block.next
|
||||
assert_load( produced , Parfait::Integer)
|
||||
assert_equal 5 , produced.constant.value
|
||||
end
|
||||
|
||||
def test_load_5
|
||||
produced = produce_body
|
||||
assert_load( produced , Parfait::Integer)
|
||||
|
Reference in New Issue
Block a user