move assembly from assembler to machine
id now called position
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user