22 lines
511 B
Ruby
22 lines
511 B
Ruby
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
|
|
assert_equal ::Integer , @arm.loaded_at.class
|
|
end
|
|
def test_registers
|
|
assert_equal 16 , @arm.num_registers
|
|
end
|
|
end
|
|
end
|