guibou / PyF

Haskell QuasiQuoter for String Formatting
BSD 3-Clause "New" or "Revised" License
66 stars 13 forks source link

fix golden test filename for macOSX #105

Closed guibou closed 2 years ago

guibou commented 2 years ago

It closes #97.

On macosx, the filesystem is case insensitive by default.

Because golden test files where named according to the test case, similar test case leads to the same file on macosx (e.g. {hello:g} and {hello:G} were the same test/golden{helloCOLONg}.golden file).

To solve this issue, the filename now contains the hash of the test case.

guibou commented 2 years ago

Tests are failing because filename are too long ;(