get the label int to work consistently

still need to use it in the return
This commit is contained in:
Torsten Ruger
2018-05-30 10:54:18 +03:00
parent 074ec34659
commit 0dc89c772a
9 changed files with 41 additions and 32 deletions

View File

@ -29,10 +29,10 @@ module Risc
assert_equal 0 , Position.get(@machine.cpu_init).at
end
def test_cpu_at
assert_equal "0x555c" , Position.get(@machine.cpu_init.first).to_s
assert_equal "0x5714" , Position.get(@machine.cpu_init.first).to_s
end
def test_cpu_bin
assert_equal "0x5554" , Position.get(Position.get(@machine.cpu_init.first).binary).to_s
assert_equal "0x570c" , Position.get(Position.get(@machine.cpu_init.first).binary).to_s
end
def test_cpu_label
assert_equal Position::InstructionPosition , Position.get(@machine.cpu_init.first).class