Skip to content
All guides

learn

Testing

Tests are blocks, not a second language.

test "addition works" {
    expect 2 + 3 == 5
}

test "withdraw rejects overdraft" {
    expect 2 + 3 == 5
}

Put them in tests/smoke.bq or inline in src/.

buraaq test

buraaq new already writes a smoke test.

Test pure functions and invariants. Hit a running Keel API with curl: do not unit-test the accept loop.

Your Learn track is done. You already turned the ledger into an app. Next: Systems for the metal, or Servers for REST depth.