265 clear empties a store and fires cleared once

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

live 3
after first clear: gone 3 live 0
refilled to 1
after second clear: gone 4 live 0

Expected output

live 3
after first clear: gone 3 live 0
refilled to 1
after second clear: gone 4 live 0

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: tally, source: gone: 0[i64], live: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: rows, capacity: 8, source: v: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: rows, source: v: 10)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: rows, source: v: 20)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: rows, source: v: 30)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "live {{ tally.live:d }}")
flow ~clear click a branch to expand · @labels scroll to their anchor
clear (expr: rows)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: rows, source: v: 40)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "refilled to {{ tally.live:d }}")
flow ~clear click a branch to expand · @labels scroll to their anchor
clear (expr: rows)

Test Configuration

MUST_RUN