Require readFold.reads to panic on a node kind it has no case for

This commit is contained in:
2026-09-30 16:56:24 +02:00
committed by Lillem4n
parent 3d1b153a91
commit 3240f05027
+1
View File
@@ -111,6 +111,7 @@ func TestNodeSwitchesHandleEveryKind(t *testing.T) {
"contained": func(n node) { contained(n) },
"paths": func(n node) { paths(n) },
"prove": func(n node) { (&valueProof{}).prove(n) },
"reads": func(n node) { newReadFold().reads(n) },
"render": func(n node) {
var draws renderDraws
render(engine(1).rand, n, renderScope{draws: &draws, row: renderedRow{tbl, 0}})