2018-06-30 22:16:17 +02:00
|
|
|
require_relative "helper"
|
|
|
|
|
|
|
|
module Risc
|
|
|
|
class TestBuiltinFunction < MiniTest::Test
|
|
|
|
|
|
|
|
def setup
|
2019-02-08 22:03:23 +01:00
|
|
|
Parfait.boot!(Parfait.default_test_options)
|
2018-06-30 22:16:17 +02:00
|
|
|
end
|
|
|
|
def test_has_boot_function
|
|
|
|
assert Builtin.boot_functions
|
|
|
|
end
|
|
|
|
def test_boot_function_type
|
|
|
|
assert_equal Array, Builtin.boot_functions.class
|
|
|
|
end
|
|
|
|
def test_boot_function_length
|
|
|
|
assert_equal 23, Builtin.boot_functions.length
|
|
|
|
end
|
|
|
|
def test_boot_function_first
|
2018-06-30 22:26:28 +02:00
|
|
|
assert_equal MethodCompiler, Builtin.boot_functions.first.class
|
2018-06-30 22:16:17 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|