local e=require("\064\102\114\107\116\101\115\116\047\102\114\107\116\101\115\116")local W=e.test local w=e.assert.check return function()W.suite("\069\114\114\111\114\115",function()W.case("\116\104\114\111\119\105\110\103",function()error("\115\111\109\101 \101\114\114\111\114")end)W.case("\115\104\111\117\108\100 \101\114\114\111\114",function()w.should_error(function()return 10 end)end)W.case("\115\104\111\117\108\100 \110\111\116 \101\114\114\111\114",function()w.should_not_error(function()error("\115\111\109\101 \101\114\114\111\114")end)end)end)end
local frktest = require("@frktest/frktest")
local test = frktest.test
local check = frktest.assert.check

return function()
    test.suite("Errors", function()
        test.case("throwing", function()
            error("some error") -- errors end a test
        end)

        test.case("should error", function()
            check.should_error(function()
                return 10
            end)
        end)

        test.case("should not error", function()
            check.should_not_error(function()
                error("some error")
            end)
        end)
    end)
end
