2018-04-19 18:47:35 +02:00
|
|
|
require_relative "../helper"
|
|
|
|
|
|
|
|
module Risc
|
|
|
|
module Builtin
|
|
|
|
class BuiltinTest < MiniTest::Test
|
|
|
|
include Ticker
|
|
|
|
def setup
|
|
|
|
end
|
|
|
|
end
|
2019-08-11 13:31:00 +02:00
|
|
|
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
|
2018-04-19 18:47:35 +02:00
|
|
|
end
|
|
|
|
end
|