function Expectation.a(B,Q)local Z=(type(B.value)==Q)==B.successCondition local X=formatMessage(B.successCondition,("\069\120\112\101\099\116\101\100 \118\097\108\117\101 \111\102 \116\121\112\101 \037\113\044 \103\111\116 \118\097\108\117\101 \037\113 \111\102 \116\121\112\101 \037\115"):format(Q,tostring(B.value),type(B.value)),("\069\120\112\101\099\116\101\100 \118\097\108\117\101 \110\111\116 \111\102 \116\121\112\101 \037\113\044 \103\111\116 \118\097\108\117\101 \037\113 \111\102 \116\121\112\101 \037\115"):format(Q,tostring(B.value),type(B.value)))assertLevel(Z,X,3)B:_resetModifiers()return B end
--[[
	Assert that the expectation value is the given type.

	expect(5).to.be.a("number")
]]
function Expectation:a(typeName)
	local result = (type(self.value) == typeName) == self.successCondition

	local message = formatMessage(
		self.successCondition,
		("Expected value of type %q, got value %q of type %s"):format(typeName, tostring(self.value), type(self.value)),
		("Expected value not of type %q, got value %q of type %s"):format(
			typeName,
			tostring(self.value),
			type(self.value)
		)
	)

	assertLevel(result, message, 3)
	self:_resetModifiers()

	return self
end
