Skip to content

Commit

Permalink
Ensure the whole test fails without the fixes
Browse files Browse the repository at this point in the history
Accented characters must be in the path argument, not just in the current
working directory.
  • Loading branch information
Blaisorblade committed Aug 14, 2016
1 parent 5d4620e commit d78abf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Data/YamlSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ caseEncodeDecodeFileData = withFile "" $ \fp -> do
caseEncodeDecodeNonAsciiFileData :: Assertion
caseEncodeDecodeNonAsciiFileData = do
let mySample = (object ["foo" .= True])
inTempDirectoryNamed "accenté" $ do
D.encodeFile "bar.yaml" mySample
out1 <- D.decodeFile "bar.yaml"
inTempDirectory $ do
D.encodeFile "accenté/bar.yaml" mySample
out1 <- D.decodeFile "accenté/bar.yaml"
out1 @?= Just mySample
out2 <- D.decodeFile "test/resources/accenté/foo.yaml"
out2 @?= Just mySample
Expand Down

0 comments on commit d78abf1

Please sign in to comment.