✗
Failing This test is currently failing.
Failed: output
Failure Output
🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission) Code
// AoC 2015 Day 9 Part 1 — shortest route visiting every city once
// (statement example: London/Dublin/Belfast → 605). Koru: match extracts
// the edge (named groups, typed distance); the flow stores and queries.
// Ledger: distance table ← store; permutation search ← host.
import std/io
import std/fs
import std/regex
pub event edge { a: []const u8, b: []const u8, d: i64 }
pub event best { longest: i64 }
| dist i64
std/fs:read-lines(path: "tests/regression/810_AOC_2015/810_091_day09_part1/input.txt")
! line l |> std/regex:match(l)
| `(?<a>[A-Za-z]+) to (?<b>[A-Za-z]+) = (?<d>[0-9]+)` { a, b, d: i64 } |> edge(a, b, d)
| no-match |> std/io:print.ln("BAD: {{ l:s }}")
| done _ |> best(longest: 0)
| dist d |> std/io:print.ln("{{ d:d }}")
| failed e |> std/io:print.ln("FAILED {{ e:s }}")
Actual
0
Expected output
605
Test Configuration
MUST_RUN