return function()local w=require(script.Parent.ToLCH)local u=Color3.fromHex("\035\048\048\097\050\102\102")local T={L=64.2;C=55.72,H=268.27}it("\099\111\110\118\101\114\116\115 \097 \067\111\108\111\114\051 \116\111 \097 \076\067\072 \099\111\108\111\114",function()local S=w(u);(expect(S.L)).to.be.near(T.L,.02);(expect(S.C)).to.be.near(T.C,.02);(expect(S.H)).to.be.near(T.H,.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 ToLCH = require(script.Parent.ToLCH)

	local TEST_COLOR3 = Color3.fromHex("#00a2ff")
	local TEST_LCH = { L = 64.2, C = 55.72, H = 268.27 }

	it("converts a Color3 to a LCH color", function()
		local lch = ToLCH(TEST_COLOR3)

		expect(lch.L).to.be.near(TEST_LCH.L, 0.02)
		expect(lch.C).to.be.near(TEST_LCH.C, 0.02)
		expect(lch.H).to.be.near(TEST_LCH.H, 0.02)
	end)

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