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.4.0-preview.1+d50446ef951a6ed675f7086cf093dbc993f0041b.