Assertion

struct Assertion

Describes a failed assertion.

Remarks

Assertion is the standard failure type used by Camp tests. The test runner reads its message, source file, and source line when a test throws it.

Example

@test
void addReturnsSum(thrown Assertion*)
{
	assert(add(2, 3) == 5);
}

Instance fields

escaped string

Human-readable failure message.

escaped string

Source file where the assertion failure was reported.

uint

One-based source line where the assertion failure was reported.

Generated with campc v0.6.0-preview.1+4dde68eca4014e9b19e7d7ad0fdae6b2036be640.