Skip to content

Assert

Raised when an assertion fails.

Inherits from: std.RuntimeError

Fields

actual @ (Str | nil) [get, set]

The debug representation of the value tested, or nil when the assertion doesn't compare two values.

expected @ (Str | nil) [get, set]

The debug representation of the value compared against, or nil when the assertion doesn't compare two values.

message @ (Str | nil) [get, set]

The assertion's message, or nil if none was given.