From fe48001d4389ad79f7402b3c654c03409babac29 Mon Sep 17 00:00:00 2001 From: d1ngd0 Date: Tue, 4 Dec 2018 10:19:26 -0600 Subject: Fixed the Pdf interface to be implemented by Fpdf and Tpl again. Added tests to ensure they will always implement (#212) --- fpdf_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fpdf_test.go') diff --git a/fpdf_test.go b/fpdf_test.go index 61dc6f9..9594431 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -57,6 +57,13 @@ func cleanup() { }) } +func TestFpdfImplementPdf(t *testing.T) { + // this will not compile if Fpdf and Tpl + // do not implement Pdf + var _ gofpdf.Pdf = (*gofpdf.Fpdf)(nil) + var _ gofpdf.Pdf = (*gofpdf.Tpl)(nil) +} + // TestIssue0116 addresses issue 116 in which library silently fails after // calling CellFormat when no font has been set. func TestIssue0116(t *testing.T) { -- cgit v1.2.1-24-ge1ad