05669065ca
it is what it is
23 lines
513 B
Ruby
23 lines
513 B
Ruby
require_relative "helper"
|
|
|
|
module Risc
|
|
class TestBuiltinFunction < MiniTest::Test
|
|
|
|
def setup
|
|
Parfait.boot!
|
|
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
|
|
assert_equal MethodCompiler, Builtin.boot_functions.first.class
|
|
end
|
|
end
|
|
end
|