mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-30 13:48:51 +08:00
Abort test if error occurs
This commit is contained in:
parent
18481ea7e8
commit
21c3b4323e
@ -118,7 +118,7 @@ func TestNewStandard14Font(t *testing.T) {
|
|||||||
t.Fatalf("%s: failed to get glyph metric", in)
|
t.Fatalf("%s: failed to get glyph metric", in)
|
||||||
}
|
}
|
||||||
if metrics.Wx != expect.Wx || metrics.Wy != expect.Wy {
|
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)
|
in, expect.Wx, expect.Wy, metrics.Wx, metrics.Wy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user