local v=import("\046\047\118\097\108\105\100\097\116\101\084\121\112\101")describe("\118\097\108\105\100\097\116\101\084\121\112\101",function()it("\115\104\111\117\108\100 \098\101 \097 \102\117\110\099\116\105\111\110",function()assert.not_nil(v)assert.equals(type(v),"\102\117\110\099\116\105\111\110")end)it("\115\104\111\117\108\100 \097\099\099\101\112\116 \118\097\108\105\100 \116\121\112\101\115",function()v("",123,"\110\117\109\098\101\114")v("","\116\101\115\116","\115\116\114\105\110\103")v("",true,"\098\111\111\108\101\097\110")end)it("\115\104\111\117\108\100 \116\104\114\111\119 \111\110 \109\105\115\109\097\116\099\104\101\100 \116\121\112\101\115",function()assert.has.errors(function()v("\116\101\120\116",{},"\115\116\114\105\110\103")end)end)end)
local validateType = import("./validateType")

describe("validateType", function()
	it("should be a function", function()
		assert.not_nil(validateType)
		assert.equals(type(validateType), "function")
	end)

	it("should accept valid types", function()
		validateType("", 123, "number")
		validateType("", "test", "string")
		validateType("", true, "boolean")
	end)

	it("should throw on mismatched types", function()
		assert.has.errors(function()
			validateType("text", {}, "string")
		end)
	end)
end)