Skip to content

Commit

Permalink
Merge pull request #31 from jesims/JESI-2671
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreTheHunter committed Mar 6, 2019
2 parents 2d6b61a + 3c25803 commit 05f2440
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.25
0.0.26
14 changes: 14 additions & 0 deletions test/io/jesi/backpack/string_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
(bp/->camelCase "_actions"))))

(deftest ->kebab-case-test
(is (= "kebab-case"
(bp/->kebab-case :kebab-case)
(bp/->kebab-case "kebab-case")))

(is (= "namespaced/kebab-case"
(bp/->kebab-case :namespaced/kebab-case)
(bp/->kebab-case "namespaced/kebab-case")))

(is (= "v2"
(bp/->kebab-case :v2)
(bp/->kebab-case "v2")))
Expand Down Expand Up @@ -84,6 +92,12 @@
(is (= "lots-of-yelling"
(bp/->kebab-case :LOTS_OF_YELLING))))

(deftest ->kebab-case-key-test
(is (= :turtles.can.breathe.through/their-anus
(bp/->kebab-case-key :turtles.can.breathe.through/their-anus)
(bp/->kebab-case-key "turtles.can.breathe.through/their-anus")
(bp/->kebab-case-key "turtles.can.breathe.through/theirAnus"))))

(deftest ->snake_case-test
(is (= "v2"
(bp/->snake_case :v2)
Expand Down

0 comments on commit 05f2440

Please sign in to comment.