summaryrefslogtreecommitdiff
path: root/tests/TestSuite
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-11-20 11:50:22 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-11-20 11:50:22 +0100
commitb5adcb69d1cd26e613c5c56c85307050bb8297cf (patch)
treebb9485213f2c2fa022c2a363de26ad0561f1d8c9 /tests/TestSuite
parentbfa10560f87b1843f9302a70f6c9333fc2731e88 (diff)
downloadhakyll-b5adcb69d1cd26e613c5c56c85307050bb8297cf.tar.gz
Update more tests
Diffstat (limited to 'tests/TestSuite')
-rw-r--r--tests/TestSuite/Util.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/TestSuite/Util.hs b/tests/TestSuite/Util.hs
index 9403ce5..5d62ffc 100644
--- a/tests/TestSuite/Util.hs
+++ b/tests/TestSuite/Util.hs
@@ -17,6 +17,7 @@ import System.Directory (removeDirectoryRecursive)
import Test.Framework
import Test.Framework.Providers.HUnit
import Test.HUnit hiding (Test)
+import Text.Printf (printf)
--------------------------------------------------------------------------------
@@ -32,9 +33,8 @@ import qualified Hakyll.Core.Store as Store
fromAssertions :: String -- ^ Name
-> [Assertion] -- ^ Cases
-> [Test] -- ^ Result tests
-fromAssertions name = zipWith testCase names
- where
- names = map (\n -> name ++ " [" ++ show n ++ "]") [1 :: Int ..]
+fromAssertions name =
+ zipWith testCase [printf "%s [%3d]" name n | n <- [1 :: Int ..]]
--------------------------------------------------------------------------------