Skip to content

Commit 36a5fbf

Browse files
committed
Disclaimer for prop_mkPathNative
1 parent 4a7be95 commit 36a5fbf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hackage-security/tests/TestSuite.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,11 @@ mkPackageName = PackageName
555555
Path tests
556556
-------------------------------------------------------------------------------}
557557

558+
-- | Disclaimer: This test uses the vanilla generator for @type 'FilePath' = String@
559+
-- and may thus been ineffective in establishing the desired round-trip property for
560+
-- 'mkPathNative' and 'unPathNative' with sufficient probability.
561+
--
562+
-- Discussion at <https://github.com/haskell/hackage-security/pull/336#discussion_r2750538855>
563+
558564
prop_mkPathNative :: Property
559565
prop_mkPathNative = property $ \(fp :: FilePath) -> (mkPathNative . unPathNative . mkPathNative) fp === mkPathNative fp
560-

0 commit comments

Comments
 (0)