rubyx/test/slot_machine/instructions/test_jump.rb
Torsten db5a59f735 Unify instruction namings also dirs
Was getting confused myself, where it was instruction or instructions, when if the base class was inside or out of dir.
Now dirs are plural, and base class is inside.
2020-03-22 14:31:43 +02:00

16 lines
310 B
Ruby

require_relative "helper"
module SlotMachine
class TestJump < SlotMachineInstructionTest
def instruction
Jump.new( Label.new("ok" , "target"))
end
def test_len
assert_equal 2 , all.length , all_str
end
def test_1_slot
assert_branch risc(1) , "target"
end
end
end