local T={}function T.type(T)return function(s)local b=type(s)if b==T then return true else return false,string.format("\037\115 \101\120\112\101\099\116\101\100\044 \103\111\116 \037\115",T,b)end end end function T.typeof(T)return function(s)local b=typeof(s)if b==T then return true else return false,string.format("\037\115 \101\120\112\101\099\116\101\100\044 \103\111\116 \037\115",T,b)end end end


local t = {}

function t.type(typeName)
	return function(value)
		local valueType = type(value)
		if valueType == typeName then
			return true
		else
			return false, string.format("%s expected, got %s", typeName, valueType)
		end
	end
end

function t.typeof(typeName)
	return function(value)
		local valueType = typeof(value)
		if valueType == typeName then
			return true
		else
			return false, string.format("%s expected, got %s", typeName, valueType)
		end
	end
end
