diff options
author | Joey Hess <joey@kitenet.net> | 2011-01-30 12:01:56 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-01-30 12:13:34 -0400 |
commit | 1b0edc1ab2f3516dc532b0cf4ea39a0af2f6392f (patch) | |
tree | 2f552619d5f283672c79d405c709661a6046c8ec /test.hs | |
parent | 96e561bc477bd0a4bbffb769369fabe1e1e1982f (diff) |
idiomatic elem
Diffstat (limited to 'test.hs')
-rw-r--r-- | test.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |