diff --git a/truetype/truetype_test.go b/truetype/truetype_test.go index 9ef6ec8d266aa62c387b99c296abc9f07c391a5e..12cc7e90d2e6041d2970bb5bc8351bd64d9c30ee 100644 --- a/truetype/truetype_test.go +++ b/truetype/truetype_test.go @@ -17,7 +17,7 @@ import ( ) func parseTestdataFont(name string) (font *Font, testdataIsOptional bool, err error) { - b, err := ioutil.ReadFile(fmt.Sprintf("../../testdata/%s.ttf", name)) + b, err := ioutil.ReadFile(fmt.Sprintf("../testdata/%s.ttf", name)) if err != nil { // The "x-foo" fonts are optional tests, as they are not checked // in for copyright or file size reasons. @@ -282,7 +282,7 @@ func testScaling(t *testing.T, h Hinting) { hintingStr = "with" } f, err := os.Open(fmt.Sprintf( - "../../testdata/%s-%dpt-%s-hinting.txt", tc.name, tc.size, hintingStr)) + "../testdata/%s-%dpt-%s-hinting.txt", tc.name, tc.size, hintingStr)) if err != nil { t.Errorf("%s: Open: %v", tc.name, err) continue