casing 0.1.4.0 → 0.1.4.1
raw patch · 3 files changed
+6/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- casing.cabal +1/−1
- src/Text/Casing.hs +1/−0
- tests/Spec.hs +4/−0
casing.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: casing-version: 0.1.4.0+version: 0.1.4.1 synopsis: Convert between various source code casing conventions description: Converts between camelCase, PascalCase, kebab-case, and three flavors of snake_case.
src/Text/Casing.hs view
@@ -106,6 +106,7 @@ -- | To @camelCase@ toCamel :: Identifier String -> String+toCamel (Identifier []) = "" toCamel (Identifier (x:xs)) = concat $ map toLower x:map wordCase xs -- | To @kebab-case@
tests/Spec.hs view
@@ -229,6 +229,10 @@ assertEqual "" "helloWorld" (toCamel $ Identifier ["hello", "world"])+ , testCase "toCamel empty" $ do+ assertEqual ""+ ""+ (toCamel $ Identifier []) ] , testGroup "toKebab" [ testCase "toKebab simple" $ do