summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Core/Util/Arrow
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2011-12-10 16:13:22 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2011-12-10 16:13:22 +0100
commit9badd09c910d4053470e52b1f44e9bb8d958da34 (patch)
treea1353145a9c73cba0f71a4f37b8f35753947b4a5 /tests/Hakyll/Core/Util/Arrow
parent8a40170ff78fbecac188bc88ad146a7657107840 (diff)
downloadhakyll-9badd09c910d4053470e52b1f44e9bb8d958da34.tar.gz
sequenceA was reversing the list
Diffstat (limited to 'tests/Hakyll/Core/Util/Arrow')
-rw-r--r--tests/Hakyll/Core/Util/Arrow/Tests.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Hakyll/Core/Util/Arrow/Tests.hs b/tests/Hakyll/Core/Util/Arrow/Tests.hs
new file mode 100644
index 0000000..c0c7eaa
--- /dev/null
+++ b/tests/Hakyll/Core/Util/Arrow/Tests.hs
@@ -0,0 +1,14 @@
+module Hakyll.Core.Util.Arrow.Tests
+ ( tests
+ ) where
+
+import Test.Framework (Test)
+import Test.HUnit ((@=?))
+
+import Hakyll.Core.Util.Arrow
+import TestSuite.Util
+
+tests :: [Test]
+tests = fromAssertions "sequenceA"
+ [ [8, 20, 1] @=? sequenceA [(+ 4), (* 5), signum] (4 :: Int)
+ ]