summaryrefslogtreecommitdiff
path: root/internal/example/example.go
AgeCommit message (Collapse)Author
2019-09-07Strikeout: use "S" as styleStrFranz Fangmeyer
2018-12-11Fix comments according to best practices by effective go (#217)CodeLingo Bot
* Fix comments according to best practices by effective go * Update font.go * Update fpdf_test.go * Update fpdf.go * Update example.go * Update util.go
2017-11-12Remove default byte-for-byte comparison of generated PDF with reference PDF. ↵Kurt
This comparison step started as a means of assuring repeatability across platforms, but has been an ongoing source of frustration with ordering of internal dictionaries and resources.
2017-08-30FalseDarren McCleary
2017-08-30Updated exampleDarren McCleary
2016-08-18Allow default compression mode to be set. Go 1.7 introduces a new ↵Kurt
compression/flate routine that results in different compressed streams than before. Consequently, PDFs generated with go 1.7 are not generally binary-equivalent with those generated with previous versions. Turning off compression for test files removes this variability. However, it does not help with PDFs that contain images. For now, those reference PDFs have been removed to allow tests to proceed.
2015-10-11Move default assignments to init function of example file from various test ↵Kurt Jung
files. Now any package that imports the example package will generate PDFs with sorted catalogs and a fixed creation timestamp.
2015-10-09Remove some development commentsKurt Jung
2015-10-09Implement PDF comparison with rudimentary byte-difference display. If a ↵Kurt Jung
reference file exists, it will be compared with its associated example file. If the reference file is missing, the associated example file is considered to be without differences. PDF files in any subdirectory named reference are not deleted when the test begins. This commit is broken -- it illustrates how the use of maps for fonts, images and other resources lead to different dictionary tables in the PDF document.
2015-10-08Omit type in declaration assignmentKurt Jung
2015-10-08Clarify a commentKurt Jung
2015-10-08Compare bytes of PDFs generated as examples with reference copies. ↵Kurt Jung
Differences in the CreationDate values are effectively ignored in the comparison.
2015-08-27Delint documentation for example packageKurt Jung
2015-08-26Factor various test example helper routines into their own internal packageKurt Jung