056 partially handled interpreted flow

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual

--- A: no arms, unhandled outcome
  DISPATCH ERROR: NoBranchMatch
--- B: only | ok handled, | bad fires
  UNHANDLED branch=[bad] payload={"branch":"bad","value":"n was not positive"} held=[]
--- C: control, | ok handled and | ok fires
      note: took ok
  result branch=[]

Expected output

--- A: no arms, unhandled outcome
  DISPATCH ERROR: NoBranchMatch
--- B: only | ok handled, | bad fires
  UNHANDLED branch=[bad] payload={"branch":"bad","value":"n was not positive"} held=[]
--- C: control, | ok handled and | ok fires
      note: took ok
  result branch=[]

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "api", source: pick(1) note(1))
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "--- A: no arms, unhandled outcome")
flow ~run click a branch to expand · @labels scroll to their anchor
run (source: A, scope: "api")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "--- B: only | ok handled, | bad fires")
flow ~run click a branch to expand · @labels scroll to their anchor
run (source: B, scope: "api", lenient: true)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "--- C: control, | ok handled and | ok fires")
flow ~run click a branch to expand · @labels scroll to their anchor
run (source: C, scope: "api")

Test Configuration

MUST_RUN