From 9664d4a151f2ba7de3ad26b575c66beac49debc9 Mon Sep 17 00:00:00 2001 From: Boran Seref Date: Mon, 2 Jan 2023 15:41:10 +0100 Subject: [PATCH] chore: fix len in the error msg (#5516) Signed-off-by: boranx --- ast/visit_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast/visit_test.go b/ast/visit_test.go index 11166fbd5e..23d4f57e72 100644 --- a/ast/visit_test.go +++ b/ast/visit_test.go @@ -108,7 +108,7 @@ fn([x, y]) = z { json.unmarshal(x, z); z > y } vis.Walk(rule) if len(elems) != 254 { - t.Errorf("Expected exactly 246 elements in AST but got %d: %v", len(elems), elems) + t.Errorf("Expected exactly 254 elements in AST but got %d: %v", len(elems), elems) } }