diff --git a/docs/now/2026-09-23-published-implement-the-4-empty-function-bodies-in-specs-tri-utils-con.md b/docs/now/2026-09-23-published-implement-the-4-empty-function-bodies-in-specs-tri-utils-con.md new file mode 100644 index 0000000000..522f1188e5 --- /dev/null +++ b/docs/now/2026-09-23-published-implement-the-4-empty-function-bodies-in-specs-tri-utils-con.md @@ -0,0 +1,11 @@ +# NOW -- Implement the 4 empty function bodies in specs/tri/utils/config.t27 (published 2026-09-23) + +## A bee's work on #4618, published from `queen-4618` (Closes #4618) + +- The branch changes 1 file(s): `specs/tri/utils/config.t27`. +- `git diff --stat origin/master...queen-4618` reads: 1 file changed, 5 insertions(+), 5 deletions(-) +- This entry is written by the publisher, not by the bee. A pull request must + add exactly one `docs/now/` entry and a bee has no way to know that: its brief + names a boundary file and acceptance criteria, and `docs/now/` is neither. +- What this entry does NOT establish: that the work is correct. The gates on the + pull request judge that, and they are the same gates every other change meets. diff --git a/specs/tri/utils/config.t27 b/specs/tri/utils/config.t27 index cdc0713b8b..8ec05c9b0e 100644 --- a/specs/tri/utils/config.t27 +++ b/specs/tri/utils/config.t27 @@ -39,7 +39,7 @@ module TriConfig; var lines = std.mem.tokenizeScalar(u8, content, '\n'); - while (lines.next()) |line| { + for (lines) |line| { var trimmed = std.mem.trim(u8, line, " \t\r"); if (trimmed.len == 0 or trimmed[0] == '#') { continue; @@ -65,11 +65,11 @@ module TriConfig; try entries.append(ConfigEntry{ .key = key, .value = value }); } else { - return Config{ .entries = entries.toOwnedSlice(), .@"error" = "Malformed config line: no = found" }; + return Config{ .entries = entries.toOwnedSlice(), .error = "Malformed config line: no = found" }; } } - return Config{ .entries = entries.toOwnedSlice(), .@"error" = null }; + return Config{ .entries = entries.toOwnedSlice(), .error = null }; } // get_string(config: Config, key: []const u8, default: []const u8) → []const u8 @@ -156,12 +156,12 @@ module TriConfig; and result.entries[3].value.is_null == true test get_string_returns_default_for_missing_key - given config = Config{ .entries = &[_]ConfigEntry{.key="test", .value=ConfigValue{.string="found"}}, .@"error" = null } + given config = Config{ .entries = &[_]ConfigEntry{.key="test", .value=ConfigValue{.string="found"}}, .error = null } when result = get_string(config, "missing", "default") then result == "default" test get_number_returns_default_for_wrong_type - given config = Config{ .entries = &[_]ConfigEntry{.key="test", .value=ConfigValue{.string="not a number"}}, .@"error" = null } + given config = Config{ .entries = &[_]ConfigEntry{.key="test", .value=ConfigValue{.string="not a number"}}, .error = null } when result = get_number(config, "test", 99.0) then result == 99.0