projects
/
functorrent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b29012
)
metainfotest: use the predicate shouldSatisfy to check for a condition
author
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Wed, 26 Jul 2017 12:01:22 +0000
(17:31 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Wed, 26 Jul 2017 12:01:22 +0000
(17:31 +0530)
test/MetainfoTests.hs
patch
|
blob
|
history
diff --git
a/test/MetainfoTests.hs
b/test/MetainfoTests.hs
index 824bb64ee1d50568e1ba81c84ced0269ab51516d..727de500e705981e0bb3c6acbd9c972a88def022 100644
(file)
--- a/
test/MetainfoTests.hs
+++ b/
test/MetainfoTests.hs
@@
-19,5
+19,5
@@
tests = hspec $ do
case torrentToMetainfo fc of
Left _ -> pending
Right metainfo -> do
- announceList metainfo `should
NotBe` []
+ announceList metainfo `should
Satisfy` (not . null)