hand context into position

This commit is contained in:
Torsten Ruger
2018-05-06 00:34:59 +03:00
parent 6b7e1e3932
commit 415df49199
3 changed files with 41 additions and 6 deletions

View File

@ -25,6 +25,10 @@ module Risc
pos = Position.set_position(self , 5)
assert_equal 5 , pos.at
end
def test_set_instr
pos = Position.set_position( Risc::Label.new("hi","ho") , 0)
assert_equal IPosition , pos.class
end
def tet_tos
assert_equal "0x10" , Position.set_position(self).to_s
end