From bc29957d1e31b21321c30920b1d6a0d9f66022a0 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 31 Mar 2023 19:26:57 -0400 Subject: [PATCH] lang: Add a useful debug message to tests When running this test a lot in series, it helps to have more obvious debug output. --- lang/interpret_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lang/interpret_test.go b/lang/interpret_test.go index c76c3233..8c9d6434 100644 --- a/lang/interpret_test.go +++ b/lang/interpret_test.go @@ -1731,6 +1731,10 @@ func TestAstFunc2(t *testing.T) { t.Logf("test #%d: edge(%+v): %+v -> %+v", index, e, v1, v2) } } + + if !t.Failed() { + t.Logf("test #%d: Passed!", index) + } }) } if testing.Short() {