summaryrefslogtreecommitdiff
path: root/fpdf_test.go
diff options
context:
space:
mode:
authord1ngd0 <paul.david.montag@gmail.com>2018-12-04 10:19:26 -0600
committerKurt Jung <kurt.w.jung@gmail.com>2018-12-04 11:19:26 -0500
commitfe48001d4389ad79f7402b3c654c03409babac29 (patch)
tree7701767ddb57e51802aa8258ce0c657e380462b3 /fpdf_test.go
parent3ec0a92eeadb35a4665f6f8c169674698723d6ce (diff)
Fixed the Pdf interface to be implemented by Fpdf and Tpl again. Added tests to ensure they will always implement (#212)
Diffstat (limited to 'fpdf_test.go')
-rw-r--r--fpdf_test.go7
1 files changed, 7 insertions, 0 deletions
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) {