return function()local w=require(script.Parent.ToLAB)local u=Color3.fromHex("\035\048\048\097\050\102\102")local T={L=64.21;A=-1.67,B=-55.7}it("\099\111\110\118\101\114\116\115 \097 \067\111\108\111\114\051 \116\111 \097 \076\065\066 \099\111\108\111\114",function()local S=w(u);(expect(S.L)).to.be.near(T.L,.02);(expect(S.A)).to.be.near(T.A,.02);(expect(S.B)).to.be.near(T.B,.02)end)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(function()w(nil)end)).to.throw()end)end
return function()
	local ToLAB = require(script.Parent.ToLAB)

	local TEST_COLOR3 = Color3.fromHex("#00a2ff")
	local TEST_LAB = { L = 64.21, A = -1.67, B = -55.7 }

	it("converts a Color3 to a LAB color", function()
		local lab = ToLAB(TEST_COLOR3)

		expect(lab.L).to.be.near(TEST_LAB.L, 0.02)
		expect(lab.A).to.be.near(TEST_LAB.A, 0.02)
		expect(lab.B).to.be.near(TEST_LAB.B, 0.02)
	end)

	it("throws if argument is not a Color3", function()
		expect(function()
			ToLAB(nil)
		end).to.throw()
	end)
end
