lang: unification: Add logging to make capturing errors easier
This makes building new tests easier.
This commit is contained in:
@@ -732,6 +732,10 @@ func TestUnification1(t *testing.T) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if fail && err != nil {
|
||||||
|
t.Logf("test #%d: err: %+v", index, err)
|
||||||
|
}
|
||||||
|
|
||||||
if expect == nil { // test done early
|
if expect == nil { // test done early
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user