2016-12-30 19:48:14 +01:00
|
|
|
require_relative "../helper"
|
|
|
|
|
2017-01-19 08:02:29 +01:00
|
|
|
module Risc
|
2016-12-30 19:48:14 +01:00
|
|
|
class TestMachine < MiniTest::Test
|
|
|
|
|
|
|
|
def setup
|
2017-01-19 08:02:29 +01:00
|
|
|
@machine = Risc.machine.boot
|
2016-12-30 19:48:14 +01:00
|
|
|
end
|
|
|
|
|
2018-03-27 17:47:39 +02:00
|
|
|
def test_objects
|
|
|
|
objects = @machine.objects
|
|
|
|
assert_equal Hash , objects.class
|
|
|
|
assert 400 < objects.length
|
|
|
|
end
|
2018-03-26 18:43:03 +02:00
|
|
|
|
2018-03-27 17:47:39 +02:00
|
|
|
def test_position
|
|
|
|
@machine.position_all
|
|
|
|
objects = @machine.objects
|
|
|
|
assert_equal Hash , objects.class
|
|
|
|
assert 400 < objects.length
|
2016-12-30 19:48:14 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|