Torsten Rüger
0725f02e9a
start at Object get_interna_word using the pattern to replace the whole risc method with a single mom instruction. Copying the original risc code into the instrucitons to_risc also adding some very basic tests
22 lines
444 B
Ruby
22 lines
444 B
Ruby
require_relative "../helper"
|
|
|
|
module Risc
|
|
module Builtin
|
|
class BuiltinTest < MiniTest::Test
|
|
include Ticker
|
|
def setup
|
|
end
|
|
end
|
|
class BootTest < MiniTest::Test
|
|
def setup
|
|
Parfait.boot!(Parfait.default_test_options)
|
|
@functions = Builtin.boot_functions
|
|
end
|
|
def get_compiler( name )
|
|
@functions.each.find{|meth|
|
|
meth.callable.name == name}
|
|
end
|
|
end
|
|
end
|
|
end
|