blob: 18be9a05ef29cca16536225421dd57142ff985fd [file]
require_relative "test_helper"
class UncaughtThrowErrorTest < StdlibTest
target UncaughtThrowError
def test_new
UncaughtThrowError.new(1, 2)
end
def test_tag
begin
throw :a
rescue UncaughtThrowError => error
error.tag
end
end
def test_value
begin
throw :a
rescue UncaughtThrowError => error
error.value
end
end
end