@@ -37,6 +37,11 @@ spec = do
37 Nothing -> False
37 Nothing -> False
38 Just pConverted -> p == pConverted
38 Just pConverted -> p == pConverted
40+ prop "toPathPiece <=> fromPathPiece String" $ \(p::Bool) ->
41+ case (fromPathPiece . toPathPiece) p of
43+ Just pConverted -> p == pConverted
40 describe "PathMultiPiece" $ do
45 describe "PathMultiPiece" $ do
41 prop "toPathMultiPiece <=> fromPathMultiPiece String" $ \(p::[String]) ->
46 prop "toPathMultiPiece <=> fromPathMultiPiece String" $ \(p::[String]) ->
42 p == (fromJust . fromPathMultiPiece . toPathMultiPiece) p
47 p == (fromJust . fromPathMultiPiece . toPathMultiPiece) p