summaryrefslogtreecommitdiff
path: root/test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-01-30 12:01:56 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-01-30 12:13:34 -0400
commit1b0edc1ab2f3516dc532b0cf4ea39a0af2f6392f (patch)
tree2f552619d5f283672c79d405c709661a6046c8ec /test.hs
parent96e561bc477bd0a4bbffb769369fabe1e1e1982f (diff)
idiomatic elem
Diffstat (limited to 'test.hs')
-rw-r--r--test.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.hs b/test.hs
index 5dda3b835..f7d3f7c53 100644
--- a/test.hs
+++ b/test.hs
@@ -331,7 +331,7 @@ test_trust = "git-annex trust/untrust/semitrust" ~: intmpclonerepo $ do
l <- Trust.trustGet expected
r <- Remotes.byName repo
u <- UUID.getUUID r
- return $ elem u l
+ return $ u `elem` l
assertBool msg present
repo = "origin"
@@ -588,7 +588,7 @@ checklocationlog f expected = do
g <- Annex.gitRepo
liftIO $ LocationLog.keyLocations g k
assertEqual ("bad content in location log for " ++ f ++ " key " ++ (show k) ++ " uuid " ++ thisuuid)
- expected (elem thisuuid uuids)
+ expected (thisuuid `elem` uuids)
-- Location log files should always be checked
-- into git, and any modifications staged for