From 78871641d0d21bb107260f9bac6e75d53c38aa21 Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Fri, 1 May 2026 17:17:40 +0200 Subject: [PATCH] t_common_test.go: Error messages also contains the name of the section introduced by special symbol >>> --- t_common_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t_common_test.go b/t_common_test.go index c57572c..3cf9a42 100644 --- a/t_common_test.go +++ b/t_common_test.go @@ -107,13 +107,13 @@ func doTest(t *testing.T, ctx kern.ExprContext, section string, input *inputType } if !eq /*gotResult != input.wantResult*/ { - t.Errorf("%d: `%s` -> result = %v [%s], want = %v [%s]", count, input.source, gotResult, kern.TypeName(gotResult), input.wantResult, kern.TypeName(input.wantResult)) + t.Errorf(">>>%s/%d: `%s` -> result = %v [%s], want = %v [%s]", section, count, input.source, gotResult, kern.TypeName(gotResult), input.wantResult, kern.TypeName(input.wantResult)) good = false } if gotErr != wantErr { if wantErr == nil || gotErr == nil || (gotErr.Error() != wantErr.Error()) { - t.Errorf("%d: %s -> got-err = <%v>, expected-err = <%v>", count, input.source, gotErr, wantErr) + t.Errorf(">>>%s/%d: %s -> got-err = <%v>, expected-err = <%v>", section, count, input.source, gotErr, wantErr) good = false } }