From 21c3b4323effd36251f8267b9bcd0c667af573f3 Mon Sep 17 00:00:00 2001 From: Hiroshi Muramatsu Date: Tue, 10 Jul 2018 08:57:16 +1000 Subject: [PATCH] Abort test if error occurs --- pdf/model/font_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf/model/font_test.go b/pdf/model/font_test.go index 27d3eb1a..3a4ad9f7 100644 --- a/pdf/model/font_test.go +++ b/pdf/model/font_test.go @@ -118,7 +118,7 @@ func TestNewStandard14Font(t *testing.T) { t.Fatalf("%s: failed to get glyph metric", in) } if metrics.Wx != expect.Wx || metrics.Wy != expect.Wy { - t.Errorf("%s: expected glyph metrics is Wx=%f Wy=%f, but got Wx=%f Wy=%f", + t.Fatalf("%s: expected glyph metrics is Wx=%f Wy=%f, but got Wx=%f Wy=%f", in, expect.Wx, expect.Wy, metrics.Wx, metrics.Wy) } }