2019-02-10 20:02:16 +01:00
|
|
|
require_relative "helper"
|
|
|
|
|
|
|
|
module Ruby
|
|
|
|
class NotImplemented < Minitest::Test
|
|
|
|
include RubyTests
|
|
|
|
|
2019-09-06 12:59:33 +02:00
|
|
|
# random module names don't work, only global Parfait
|
2019-02-10 20:02:16 +01:00
|
|
|
def assert_handler_missing(input)
|
|
|
|
assert_raises(Ruby::ProcessError){ compile(input) }
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_module
|
2019-09-06 12:59:33 +02:00
|
|
|
assert_handler_missing( "module Mod ; end" )
|
2019-02-10 20:02:16 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_module_module_scoped
|
|
|
|
assert_handler_missing( "M::Module" )
|
|
|
|
end
|
2019-09-06 12:59:33 +02:00
|
|
|
def test_module_parfait_scoped
|
|
|
|
assert_handler_missing( "Parfait::Module" )
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_module_parfait_scoped
|
|
|
|
assert_handler_missing( "module Mod ; end" )
|
|
|
|
end
|
2019-02-10 20:02:16 +01:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|