rubyx/test/slot_machine/instructions/test_jump.rb

16 lines
303 B
Ruby
Raw Normal View History

2019-09-17 09:16:59 +02:00
require_relative "helper"
module SlotMachine
class TestJump < SlotMachineInstructionTest
2019-09-17 09:16:59 +02:00
def instruction
Jump.new( Label.new("ok" , "target"))
end
def test_len
assert_equal 2 , all.length , all_str
end
def test_1_slot
2020-03-08 16:31:16 +01:00
assert_branch 1, "target"
2019-09-17 09:16:59 +02:00
end
end
end