2018-05-17 08:31:36 +02:00
|
|
|
require_relative "helper"
|
|
|
|
|
|
|
|
module Arm
|
|
|
|
class TestArmPlatform < MiniTest::Test
|
|
|
|
def setup
|
|
|
|
@arm = Risc::Platform.for("Arm")
|
|
|
|
end
|
|
|
|
def test_platform_class
|
|
|
|
assert_equal Arm::ArmPlatform , @arm.class
|
|
|
|
end
|
|
|
|
def test_platform_translator_class
|
|
|
|
assert_equal Arm::Translator , @arm.translator.class
|
|
|
|
end
|
|
|
|
def test_platform_loaded_class
|
2019-02-07 17:24:35 +01:00
|
|
|
assert_equal ::Integer , @arm.loaded_at.class
|
2018-05-17 08:31:36 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|