local w=require(script.Parent.Parent.Util.BasicallyIdentical)return function()local u=require(script.Parent.Screen)local T=Color3.fromRGB(0,162,255)local S=Color3.fromRGB(255,0,240)local Z=Color3.fromRGB(255,163,255)it("\116\104\114\111\119\115 \105\102 \097\114\103\117\109\101\110\116 \105\115 \110\111\116 \097 \067\111\108\111\114\051",function()(expect(pcall(u,true))).to.equal(false);(expect(pcall(u,S,true))).to.equal(false)end)it("\099\111\114\114\101\099\116\108\121 \097\112\112\108\105\101\115 \102\105\108\116\101\114",function()local g=u(S,T);(expect(w(Z,g))).to.equal(true)end)end
local BasicallyIdentical = require(script.Parent.Parent.Util.BasicallyIdentical)

return function()
	local Filter = require(script.Parent.Screen)

	local foreground = Color3.fromRGB(0, 162, 255)
	local background = Color3.fromRGB(255, 0, 240)
	local result = Color3.fromRGB(255, 163, 255)

	it("throws if argument is not a Color3", function()
		expect(pcall(Filter, true)).to.equal(false)
		expect(pcall(Filter, background, true)).to.equal(false)
	end)

	it("correctly applies filter", function()
		local filterResult = Filter(background, foreground)
		expect(BasicallyIdentical(result, filterResult)).to.equal(true)
	end)
end
