function Expectation.ok(p)local J=(p.value~=nil)==p.successCondition local v=formatMessage(p.successCondition,("\069\120\112\101\099\116\101\100 \118\097\108\117\101 \037\113 \116\111 \098\101 \110\111\110-\110\105\108"):format(tostring(p.value)),("\069\120\112\101\099\116\101\100 \118\097\108\117\101 \037\113 \116\111 \098\101 \110\105\108"):format(tostring(p.value)))assertLevel(J,v,3)p:_resetModifiers()return p end

function Expectation:ok()
	local result = (self.value ~= nil) == self.successCondition

	local message = formatMessage(self.successCondition,
		("Expected value %q to be non-nil"):format(
			tostring(self.value)
		),
		("Expected value %q to be nil"):format(
			tostring(self.value)
		)
	)

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

	return self
end
