2018-05-12 17:32:10 +02:00
|
|
|
require_relative "../helper"
|
|
|
|
|
|
|
|
module Risc
|
|
|
|
class TestPlaform < MiniTest::Test
|
|
|
|
|
2018-05-17 08:31:36 +02:00
|
|
|
def test_arm_factory_exists
|
2018-05-12 17:32:10 +02:00
|
|
|
assert Platform.for("Arm")
|
|
|
|
end
|
2018-05-17 08:31:36 +02:00
|
|
|
def test_inter_factory_exists
|
|
|
|
assert Platform.for("Interpreter")
|
|
|
|
end
|
2018-05-12 17:32:10 +02:00
|
|
|
def test_factory_raise
|
|
|
|
assert_raises{ Platform.for("NotArm")}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|