better way to test object registers

also some cleaning, by using more helpers
This commit is contained in:
2020-03-02 17:50:03 +02:00
parent ece1e8c87b
commit d0036ed95b
8 changed files with 73 additions and 136 deletions

View File

@ -9,10 +9,7 @@ module Risc
Risc.load_constant("source" , const)
end
def test_const
assert_equal LoadConstant , load.class
end
def test_const_reg
assert load.register.is_object?
assert_load load , SlotMachine::StringConstant , "id_"
end
end
class TestLoadConstant1 < MiniTest::Test
@ -23,10 +20,7 @@ module Risc
Risc.load_constant("source" , const)
end
def test_parf
assert_equal LoadConstant , load.class
end
def test_parf_reg
assert load.register.is_object?
assert_load load , Parfait::Word , "id_"
end
end
end