misc test fixes
This commit is contained in:
@ -23,7 +23,7 @@ GET
|
||||
assert_equal SlotMachine::Div4 , compiler.slot_instructions.next.class
|
||||
end
|
||||
def test_risc
|
||||
assert_equal 41 , compiler.to_risc.risc_instructions.length
|
||||
assert_equal 39 , compiler.to_risc.risc_instructions.length
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -25,7 +25,7 @@ GET
|
||||
assert_equal op , compiler.slot_instructions.next.operator
|
||||
end
|
||||
def test_risc
|
||||
assert_equal 42 , compiler.to_risc.risc_instructions.length
|
||||
assert_equal 40 , compiler.to_risc.risc_instructions.length
|
||||
end
|
||||
end
|
||||
class TestIntegerMinus < TestIntegerPlus
|
||||
|
@ -23,7 +23,7 @@ GET
|
||||
assert_equal SlotMachine::Exit , compiler.slot_instructions.next.class
|
||||
end
|
||||
def test_risc
|
||||
assert_equal 40 , compiler.to_risc.risc_instructions.length
|
||||
assert_equal 38 , compiler.to_risc.risc_instructions.length
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,7 +23,7 @@ GET
|
||||
assert_equal SlotMachine::GetInternalWord , compiler.slot_instructions.next.class
|
||||
end
|
||||
def test_risc
|
||||
assert_equal 18 , compiler.to_risc.risc_instructions.length
|
||||
assert_equal 17 , compiler.to_risc.risc_instructions.length
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,7 +23,7 @@ GET
|
||||
assert_equal SlotMachine::Init , compiler.slot_instructions.next.class
|
||||
end
|
||||
def test_risc
|
||||
assert_equal 31 , compiler.to_risc.risc_instructions.length
|
||||
assert_equal 30 , compiler.to_risc.risc_instructions.length
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,7 +23,7 @@ GET
|
||||
assert_equal SlotMachine::GetInternalByte , compiler.slot_instructions.next.class
|
||||
end
|
||||
def test_risc
|
||||
assert_equal 41 , compiler.to_risc.risc_instructions.length
|
||||
assert_equal 39 , compiler.to_risc.risc_instructions.length
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -23,7 +23,7 @@ GET
|
||||
assert_equal SlotMachine::Putstring , compiler.slot_instructions.next.class
|
||||
end
|
||||
def test_risc
|
||||
assert_equal 44 , compiler.to_risc.risc_instructions.length
|
||||
assert_equal 42 , compiler.to_risc.risc_instructions.length
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user