002 mock multiple branches

✓ Passing This code compiles and runs correctly.

Code

input.k

Flows

flow ~test click a branch to expand · @labels scroll to their anchor
test (Withdrawal succeeds when mocked, source: withdraw => success 50 withdraw(amount: 100) | success s |> assert(s == 50))
flow ~test click a branch to expand · @labels scroll to their anchor
test (Withdrawal fails when funds insufficient, source: withdraw => insufficient-funds withdraw(amount: 100) | insufficient-funds |> assert(true))

Test Configuration

Post-validation Script: