From 2da7854b247593dbc6588cefe8c731f3fe93bc2d Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 20 Jan 2019 03:38:17 -0500 Subject: [PATCH] lang: unification: Add logging to make capturing errors easier This makes building new tests easier. --- lang/unification_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lang/unification_test.go b/lang/unification_test.go index 599b21ee..cc5d8328 100644 --- a/lang/unification_test.go +++ b/lang/unification_test.go @@ -732,6 +732,10 @@ func TestUnification1(t *testing.T) { return } + if fail && err != nil { + t.Logf("test #%d: err: %+v", index, err) + } + if expect == nil { // test done early return }