local w=require(script.Parent.Parent.Util.BasicallyIdentical)return function()local u=require(script.Parent.FromLAB)local T=Color3.fromHex("\035\048\048\097\050\102\102")local S={L=64.21;A=-1.67,B=-55.7}it("\099\111\110\118\101\114\116\115 \097 \076\065\066 \099\111\108\111\114 \116\111 \097 \067\111\108\111\114\051",function()local Z=u(S);(expect(w(Z,T))).to.equal(true)end)it("\116\104\114\111\119\115 \105\102 \097\114\103\117\109\101\110\116 \105\115 \110\111\116 \097 \076\065\066 \116\097\098\108\101",function()(expect(function()u(nil)end)).to.throw();(expect(function()u({})end)).to.throw()end)end
local BasicallyIdentical = require(script.Parent.Parent.Util.BasicallyIdentical)

return function()
	local FromLab = require(script.Parent.FromLAB)

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

	it("converts a LAB color to a Color3", function()
		local color3 = FromLab(TEST_LAB)

		expect(BasicallyIdentical(color3, TEST_COLOR3)).to.equal(true)
	end)

	it("throws if argument is not a LAB table", function()
		expect(function()
			FromLab(nil)
		end).to.throw()

		expect(function()
			FromLab({})
		end).to.throw()
	end)
end
