rubyx/test/risc/test_machine.rb

24 lines
450 B
Ruby
Raw Normal View History

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
2018-03-26 18:43:03 +02:00
def test_position
@machine.position_all
objects = @machine.objects
assert_equal Hash , objects.class
assert 400 < objects.length
end
end
end