]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - src/StringUtils.hs
Use hyphens instead of underscores in access-token et al.
[dead/halcyon.git] / src / StringUtils.hs
index f9d7dfc9cf8ae4b08c05f8f9dbd21ec52fac1230..b5feccb3f079a32755784ad2afc63b894802233b 100644 (file)
@@ -13,8 +13,8 @@ import Test.HUnit
 --   3. etc.
 --
 listify :: [String] -> [String]
-listify items =
-    zipWith (++) list_numbers items
+listify =
+    zipWith (++) list_numbers
     where
       list_numbers = map show_with_dot [1::Integer ..]
       show_with_dot x = (show x) ++ ". "
@@ -27,7 +27,8 @@ string_utils_tests = [ test_listify ]
 
 test_listify :: Test
 test_listify =
-    TestCase $ assertEqual "All items are numbered correctly." expected_items actual_items
+    TestCase $ assertEqual description expected_items actual_items
     where
+      description = "All items are numbered correctly."
       actual_items = listify [ "item1", "item2" ]
       expected_items = ["1. item1", "2. item2" ]