return function()local z=require(script.Parent.Parent.generic.new)local Y=require(script.Parent.combineDescriptions)local Z=z({ClassName="\072\117\109\097\110\111\105\100\068\101\115\099\114\105\112\116\105\111\110",HairAccessory="\051\057\056\054\055\050\057\050\048";HatAccessory="\049\055\053\049\051\052\054\054\048\044\051\055\048\050\056\054\051\056\057\050\044\050\054\052\054\049\049\054\054\053";BodyTypeScale=.75;TorsoColor=Color3.fromRGB(255,201,201)})it("\115\104\111\117\108\100 \119\111\114\107 \119\105\116\104 \116\104\101 \100\111\099\117\109\101\110\116\101\100 \101\120\097\109\112\108\101",function()local z=Instance.new("\072\117\109\097\110\111\105\100\068\101\115\099\114\105\112\116\105\111\110")z.HairAccessory="\049"z.NeckAccessory="\051"local Z=Instance.new("\072\117\109\097\110\111\105\100\068\101\115\099\114\105\112\116\105\111\110")Z.HairAccessory="\050"local a=Y(z,Z);(expect(a.HairAccessory)).to.equal("\050");(expect(a.NeckAccessory)).to.equal("\051")end)it("\115\104\111\117\108\100 \099\111\109\098\105\110\101 \116\119\111 \072\117\109\097\110\111\105\100\068\101\115\099\114\105\112\116\111\110\115",function()local a=Z:Clone()local U=z({ClassName="\072\117\109\097\110\111\105\100\068\101\115\099\114\105\112\116\105\111\110",HatAccessory="\049\055\053\049\051\052\054\054\048";TorsoColor=Color3.fromRGB(255,0,0)})local G=Y(a,U);(expect(G.HairAccessory)).to.equal(a.HairAccessory);(expect(G.BodyTypeScale)).to.equal(a.BodyTypeScale);(expect(G.HatAccessory)).to.equal(U.HatAccessory);(expect(G.TorsoColor)).to.equal(U.TorsoColor)end)end
return function()
	local new = require(script.Parent.Parent.generic.new)
	local combineDescriptions = require(script.Parent.combineDescriptions)

	local MOCK_DESCRIPTION = new({
		ClassName = "HumanoidDescription",
		HairAccessory = "398672920",
		HatAccessory = "175134660,3702863892,264611665",
		BodyTypeScale = 0.75,
		TorsoColor = Color3.fromRGB(255, 201, 201),
	})

	it("should work with the documented example", function()
		local base = Instance.new("HumanoidDescription")
		base.HairAccessory = "1"
		base.NeckAccessory = "3"

		local override = Instance.new("HumanoidDescription")
		override.HairAccessory = "2"

		local combined = combineDescriptions(base, override)

		expect(combined.HairAccessory).to.equal("2")
		expect(combined.NeckAccessory).to.equal("3")
	end)

	it("should combine two HumanoidDescriptons", function()
		local base = MOCK_DESCRIPTION:Clone()
		local override = new({
			ClassName = "HumanoidDescription",
			HatAccessory = "175134660",
			TorsoColor = Color3.fromRGB(255, 0, 0),
		})

		local combined = combineDescriptions(base, override)

		expect(combined.HairAccessory).to.equal(base.HairAccessory)
		expect(combined.BodyTypeScale).to.equal(base.BodyTypeScale)
		expect(combined.HatAccessory).to.equal(override.HatAccessory)
		expect(combined.TorsoColor).to.equal(override.TorsoColor)
	end)
end
