bynk.expect.not_bool
Error expect was given a non-Bool predicate.
expect states a claim that is checked when the case runs, so its predicate must be a Bool: true, or the case fails. A count or a record is not a claim. Compare the value with what you expect (==, <, is), or use a method that returns Bool. It is the same predicate surface that invariant and ensures use.
Example
fn bump(n: Int) -> Int { n + 1 }
// tests/count.test.bynkexpect bump(1) // ✗ an Int is not a claimexpect bump(1) == 2 // ✓ compare itIn the Book
See also
- The grammar rule it governs:
expect_expr. - Every code in its category, Expectations, on the diagnostic index.
bynk explain bynk.expect.not_boolshows the same from the installed toolchain, without a network.