P0011

t.assert_eq(actual, expected) was given two values that differ through Eq. The message shows both, as dbg would. Spans the call.

Machine-applicable fix: none.

Example

This program fails with P0011.

test "adds" {
    t.assert_eq(1 + 1, 3)
}

Fixed

The same program, fixed.

test "adds" {
    t.assert_eq(1 + 1, 2)
}

Listed in the runtime notes. oskac explain P0011 prints this entry offline.

All error codes