SA for slot_to_reg

This commit is contained in:
2020-02-29 17:18:27 +02:00
parent 77003eed06
commit d22da1ab97
3 changed files with 23 additions and 5 deletions

View File

@ -0,0 +1,18 @@
require_relative "../helper"
module Risc
class TestSlotToReg < MiniTest::Test
def setup
Parfait.boot!({})
end
def slot
Risc.slot_to_reg("source" , Risc.message_named_reg , :type)
end
def test_slot
assert_equal SlotToReg , slot.class
end
def test_slot_reg
assert_equal :"message.type" , slot.register.symbol
end
end
end