.nika tests, without refOpen and answer this issue on GitHub.
blocked · opened 2026-11-28 · updated 2026-11-28 · 1 comment
Part of #2838
The lowering of ADR-tether-v1 D11 (a task’s keep), D12 (a container that drops entries) and D14 (a struct of views in one) is tested mainly by Rust tests: crates/nikaia/tests/it/tether_keep.rs and tasks.rs. Their Nikaia sources use ref (e.g. fn load(path: String, mut into: collections::HashMap[ref String, ref String]) in tether_keep.rs), which ADR-views-v4 D4 removed from the language. CLAUDE.md: an existing Rust test is moved to Nikaia, new tests are .nika programs. #2838’s search found no .nika test reaching Held, Holding or Keep::view before #2839-#2843 added some.
#[test] of tether_keep.rs that runs a program (runs(..), ran(..)) into tests/compiler/tests/ as a .nika with its .stdout, written without ref (the views-v4 spelling); where a test asserts on the lowered Rust (each_representation_is_the_one_the_plan_chose), keep that assertion in Rust and say so in the report, or express it as a --tethers output test if nikaia test can compare it (the builder chooses). Remove each moved Rust test in the same commit.tasks.rs that hold views.Every moved test passes as a .nika test and its Rust twin is gone; the Rust tests left in tether_keep.rs are only those asserting on lowered Rust, each named in the report with the reason; the last commit carries Fixes #N.
crates/nikaia/tests/it/tether_keep.rs, tasks.rs (removals), tests/compiler/tests/ (new). No compiler change; a test that fails once moved is a finding: fixed or filed (CLAUDE.md).
Facts: Checker and views
17 of the 18 runs have moved (1ce59bc1, on develop). The lowered-Rust checks stay in tether_keep.rs, with ref dropped from their sources. tasks.rs held no D11 test with views.
What is left is chain. Without ref, the compiler refuses it with NK1104, which is a defect: “A field of a for element over a list of views, handed back as -> String, is refused NK1104 where an index read runs” (#2860). That issue moves chain and finishes this one. Blocked until then.
Also found: “A task that takes views prints rustc’s “unnecessary parentheses” on the user’s line” (#2861).
Generated by Claude Code