diff --git a/draw2dpdf/test_test.go b/draw2dpdf/test_test.go index 801ff36..332f278 100644 --- a/draw2dpdf/test_test.go +++ b/draw2dpdf/test_test.go @@ -7,6 +7,7 @@ package draw2dpdf_test import ( + "os" "testing" "github.com/llgcode/draw2d" @@ -25,13 +26,13 @@ func test(t *testing.T, draw sample) { t.Errorf("Drawing %q failed: %v", output, err) return } - /* - // Save to pdf only if it doesn't exist because of git - if _, err = os.Stat(output); err == nil { - t.Skipf("Saving %q skipped, as it exists already. (Git would consider it modified.)", output) - return - } - */ + + // Save to pdf only if it doesn't exist because of git + if _, err = os.Stat(output); err == nil { + t.Skipf("Saving %q skipped, as it exists already. (Git would consider it modified.)", output) + return + } + err = draw2dpdf.SaveToPdfFile(output, dest) if err != nil { t.Errorf("Saving %q failed: %v", output, err) diff --git a/output/samples/.gitignore b/output/samples/.gitignore index 7abb424..1996c5a 100644 --- a/output/samples/.gitignore +++ b/output/samples/.gitignore @@ -2,4 +2,4 @@ * # Except this file !.gitignore -!geometry.png \ No newline at end of file +!geometry.* \ No newline at end of file diff --git a/output/samples/geometry.pdf b/output/samples/geometry.pdf index 78f689a..ee16da2 100644 Binary files a/output/samples/geometry.pdf and b/output/samples/geometry.pdf differ