return function()local T=require(script.Parent.GetLuminance)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(T,100))).to.equal(false)end)it("\114\101\116\117\114\110\115 \097 \118\097\108\105\100 \108\117\109\105\110\097\110\099\101 \102\111\114 \098\108\097\099\107",function()(expect(T(Color3.new()))).to.equal(0)end)it("\114\101\116\117\114\110\115 \097 \118\097\108\105\100 \108\117\109\105\110\097\110\099\101 \102\111\114 \119\104\105\116\101",function()(expect(T(Color3.new(1,1,1)))).to.equal(1)end)it("\114\101\116\117\114\110\115 \097 \118\097\108\105\100 \108\117\109\105\110\097\110\099\101 \102\111\114 \109\105\100 \103\114\101\121",function()(expect(T(Color3.fromRGB(127,127,127)))).to.be.near(.212,.001)end)end
return function()
	local GetLuminance = require(script.Parent.GetLuminance)

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

	it("returns a valid luminance for black", function()
		expect(GetLuminance(Color3.new())).to.equal(0)
	end)

	it("returns a valid luminance for white", function()
		expect(GetLuminance(Color3.new(1, 1, 1))).to.equal(1)
	end)

	it("returns a valid luminance for mid grey", function()
		expect(GetLuminance(Color3.fromRGB(127, 127, 127))).to.be.near(0.212, 0.001)
	end)
end
