local a=require(script.Parent.Parent.TestEZ)local O=script.Parent.passing local Y=script.Parent.failing local function m(O,Y)a.run(O,function(a)if Y then assert(#a.errors==0,"\069\120\112\101\099\116\101\100 \110\111 \101\114\114\111\114\115\044 \103\111\116 "..(tostring(a.errors[1])..(" \112\108\117\115 "..(tostring(#a.errors-1).." \109\111\114\101\046"))))else assert(#a.errors>0,"\069\120\112\101\099\116\101\100 \115\111\109\101 \101\114\114\111\114\115\044 \103\111\116 \110\111\110\101\046")end end)end local S={}for a,O in ipairs(O:GetChildren())do S["\080\097\115\115\105\110\103 \116\101\115\116\115 \112\097\115\115\058 "..O.Name]=function()m(O,true)end end for a,O in ipairs(Y:GetChildren())do S["\070\097\105\108\105\110\103 \116\101\115\116\115 \102\097\105\108\058 "..O.Name]=function()m(O,false)end end return S
local TestEZ = require(script.Parent.Parent.TestEZ)

local passing = script.Parent.passing
local failing = script.Parent.failing

local function check(test, pass)
	TestEZ.run(test, function(results)
		if pass then
			assert(#results.errors == 0,
				"Expected no errors, got " .. tostring(results.errors[1]) ..
				" plus " .. tostring(#results.errors - 1) .. " more.")
		else
			assert(#results.errors > 0, "Expected some errors, got none.")
		end
	end)
end

local tests = {}
for _, child in ipairs(passing:GetChildren()) do
	tests["Passing tests pass: " .. child.Name] = function()
		check(child, true)
	end
end
for _, child in ipairs(failing:GetChildren()) do
	tests["Failing tests fail: " .. child.Name] = function()
		check(child, false)
	end
end
return tests
