✗
Failing This test is currently failing.
Failed: output
Failure Output
🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission) Code
// AoC 2015 Day 20 Part 1 — lowest house receiving at least the target
// presents (statement table: house 8 gets 150 ≥ 130 → 8). The UNBOUNDED
// HUNT IS KORU — a label fold on the subflow RHS threads (target, house,
// lazy) through payloads, one divisor-sum check per iteration (210_123
// greened; the loop came home). Ledger: divisor sum ← host;
// to-int ← string-ops/typed-groups.
import std/io
import std/fs
pub event presents-check { target: i64, house: i64, lazy: i64 }
| found i64
| next { target: i64, house: i64, lazy: i64 }
pub event hunt { target: i64 }
| house i64
hunt = #h presents-check(target, house: 1, lazy: 0)
| next s |> @h(s.target, s.house, s.lazy)
| found x => house x
capture { goal: 0[i64] }
! as acc |> std/fs:read-lines(path: "tests/regression/810_AOC_2015/810_201_day20_part1/input.txt")
! line l |> to-int(s: l)
| value v |> captured { goal: acc.goal + v }
| done _ |> _
| failed e |> std/io:print.ln("FAILED {{ e:s }}")
| captured r |> hunt(target: r.goal)
| house h |> std/io:print.ln("{{ h:d }}")
pub event to-int { s: []const u8 }
| value i64
Actual
0
Expected output
8
Test Configuration
MUST_RUN