rubyx/test/slot_language/test_slot_compiler.rb

16 lines
330 B
Ruby

require_relative "helper"
module SlotLanguage
class TestSlotCompiler < MiniTest::Test
def test_init
assert SlotCompiler.new
end
def test_compile
assert_equal SlotMaker , SlotCompiler.compile("a").class
end
def test_fail_args
assert_raises{ SlotCompiler.compile("a(1)")}
end
end
end