aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Shared.hs
diff options
context:
space:
mode:
authorChristian Despres <50160106+despresc@users.noreply.github.com>2020-09-13 10:48:14 -0400
committerGitHub <noreply@github.com>2020-09-13 07:48:14 -0700
commitcae155b095e5182cc1b342b21f7430e40afe7ba8 (patch)
tree82b6342b0a8dc6f98ce73188bb89ae5ad0267060 /test/Tests/Shared.hs
parent2109ded7101dba0ac48c9b60cdf454ad39a7e272 (diff)
downloadpandoc-cae155b095e5182cc1b342b21f7430e40afe7ba8.tar.gz
Fix hlint suggestions, update hlint.yaml (#6680)
* Fix hlint suggestions, update hlint.yaml Most suggestions were redundant brackets. Some required LambdaCase. The .hlint.yaml file had a small typo, and didn't ignore camelCase suggestions in certain modules.
Diffstat (limited to 'test/Tests/Shared.hs')
-rw-r--r--test/Tests/Shared.hs36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/Tests/Shared.hs b/test/Tests/Shared.hs
index 09391d9d0..a23edf452 100644
--- a/test/Tests/Shared.hs
+++ b/test/Tests/Shared.hs
@@ -35,24 +35,24 @@ tests = [ testGroup "compactifyDL"
testCollapse :: [TestTree]
testCollapse = map (testCase "collapse")
- [ collapseFilePath (joinPath [ ""]) @?= (joinPath [ ""])
- , collapseFilePath (joinPath [ ".","foo"]) @?= (joinPath [ "foo"])
- , collapseFilePath (joinPath [ ".",".","..","foo"]) @?= (joinPath [ joinPath ["..", "foo"]])
- , collapseFilePath (joinPath [ "..","foo"]) @?= (joinPath [ "..","foo"])
- , collapseFilePath (joinPath [ "","bar","..","baz"]) @?= (joinPath [ "","baz"])
- , collapseFilePath (joinPath [ "","..","baz"]) @?= (joinPath [ "","..","baz"])
- , collapseFilePath (joinPath [ ".","foo","..",".","bar","..",".",".","baz"]) @?= (joinPath [ "baz"])
- , collapseFilePath (joinPath [ ".",""]) @?= (joinPath [ ""])
- , collapseFilePath (joinPath [ ".",".",""]) @?= (joinPath [ ""])
- , collapseFilePath (joinPath [ "..",""]) @?= (joinPath [ ".."])
- , collapseFilePath (joinPath [ "..",".",""]) @?= (joinPath [ ".."])
- , collapseFilePath (joinPath [ ".","..",""]) @?= (joinPath [ ".."])
- , collapseFilePath (joinPath [ "..","..",""]) @?= (joinPath [ "..",".."])
- , collapseFilePath (joinPath [ "parent","foo","baz","..","bar"]) @?= (joinPath [ "parent","foo","bar"])
- , collapseFilePath (joinPath [ "parent","foo","baz","..","..","bar"]) @?= (joinPath [ "parent","bar"])
- , collapseFilePath (joinPath [ "parent","foo",".."]) @?= (joinPath [ "parent"])
- , collapseFilePath (joinPath [ "","parent","foo","..","..","bar"]) @?= (joinPath [ "","bar"])
- , collapseFilePath (joinPath [ "",".","parent","foo"]) @?= (joinPath [ "","parent","foo"])]
+ [ collapseFilePath (joinPath [ ""]) @?= joinPath [ ""]
+ , collapseFilePath (joinPath [ ".","foo"]) @?= joinPath [ "foo"]
+ , collapseFilePath (joinPath [ ".",".","..","foo"]) @?= joinPath [ joinPath ["..", "foo"]]
+ , collapseFilePath (joinPath [ "..","foo"]) @?= joinPath [ "..","foo"]
+ , collapseFilePath (joinPath [ "","bar","..","baz"]) @?= joinPath [ "","baz"]
+ , collapseFilePath (joinPath [ "","..","baz"]) @?= joinPath [ "","..","baz"]
+ , collapseFilePath (joinPath [ ".","foo","..",".","bar","..",".",".","baz"]) @?= joinPath [ "baz"]
+ , collapseFilePath (joinPath [ ".",""]) @?= joinPath [ ""]
+ , collapseFilePath (joinPath [ ".",".",""]) @?= joinPath [ ""]
+ , collapseFilePath (joinPath [ "..",""]) @?= joinPath [ ".."]
+ , collapseFilePath (joinPath [ "..",".",""]) @?= joinPath [ ".."]
+ , collapseFilePath (joinPath [ ".","..",""]) @?= joinPath [ ".."]
+ , collapseFilePath (joinPath [ "..","..",""]) @?= joinPath [ "..",".."]
+ , collapseFilePath (joinPath [ "parent","foo","baz","..","bar"]) @?= joinPath [ "parent","foo","bar"]
+ , collapseFilePath (joinPath [ "parent","foo","baz","..","..","bar"]) @?= joinPath [ "parent","bar"]
+ , collapseFilePath (joinPath [ "parent","foo",".."]) @?= joinPath [ "parent"]
+ , collapseFilePath (joinPath [ "","parent","foo","..","..","bar"]) @?= joinPath [ "","bar"]
+ , collapseFilePath (joinPath [ "",".","parent","foo"]) @?= joinPath [ "","parent","foo"]]
testLegacyTable :: [TestTree]
testLegacyTable =