rubyx/test/risc/test_machine.rb
Torsten Ruger 4253d7a6b9 move assembly from assembler to machine
id now called position
2018-03-27 18:47:39 +03:00

24 lines
450 B
Ruby

require_relative "../helper"
module Risc
class TestMachine < MiniTest::Test
def setup
@machine = Risc.machine.boot
end
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