move assembly from assembler to machine

id now called position
This commit is contained in:
Torsten Ruger
2018-03-27 18:47:39 +03:00
parent 4cc1d8455e
commit 4253d7a6b9
4 changed files with 63 additions and 53 deletions

View File

@ -7,8 +7,17 @@ module Risc
@machine = Risc.machine.boot
end
def test_co
def test_objects
objects = @machine.objects
assert_equal Hash , objects.class
assert 400 < objects.length
end
def test_position
@machine.position_all
objects = @machine.objects
assert_equal Hash , objects.class
assert 400 < objects.length
end
end
end