lang: Add a useful debug message to tests

When running this test a lot in series, it helps to have more obvious
debug output.
This commit is contained in:
James Shubin
2023-03-31 19:26:57 -04:00
parent 289835039a
commit bc29957d1e

View File

@@ -1731,6 +1731,10 @@ func TestAstFunc2(t *testing.T) {
t.Logf("test #%d: edge(%+v): %+v -> %+v", index, e, v1, v2) t.Logf("test #%d: edge(%+v): %+v -> %+v", index, e, v1, v2)
} }
} }
if !t.Failed() {
t.Logf("test #%d: Passed!", index)
}
}) })
} }
if testing.Short() { if testing.Short() {