local W=require("\064\068\101\118\080\097\099\107\097\103\101\115\047\074\101\115\116\071\108\111\098\097\108\115")local z=W.test local g=W.expect local Q=require("\046\046\047\105\110\105\116")local s=Q.Future z("\105\110\115\112\101\099\116\069\114\114",function()local W=s.new(function()error("\065",0)end)W:inspectErr(function(...)(g(...)).toEqual("\065")end)local z=W:await();(g(z:isErr())).toBe(true);(g(z:unwrapErr())).toEqual("\065")g.assertions(3)end)
local JestGlobals = require("@DevPackages/JestGlobals")

local test = JestGlobals.test
local expect = JestGlobals.expect

local Futures = require("../init")
local Future = Futures.Future

test("inspectErr", function()
	local myFuture = Future.new(function()
		error("A", 0)
	end)

	myFuture:inspectErr(function(...)
		expect(...).toEqual("A")
	end)

	local result = myFuture:await()
	expect(result:isErr()).toBe(true)

	expect(result:unwrapErr()).toEqual("A")
	expect.assertions(3)
end)
