279fdcc1e2
also labels. Actual translation/assembly is much cleaner
17 lines
340 B
Ruby
17 lines
340 B
Ruby
require_relative "../helper"
|
|
|
|
module Risc
|
|
class TestTranslator < MiniTest::Test
|
|
|
|
def setup
|
|
@machine = Risc.machine.boot
|
|
@translator = Arm::Translator.new
|
|
end
|
|
|
|
def test_translate_label
|
|
label = Parfait.object_space.get_main.risc_instructions
|
|
assert @translator.translate(label) , label
|
|
end
|
|
end
|
|
end
|