Back
->Camel_Snake_Case (clj)
(source)declaration
Examples
camel-snake-kebab
(ns camel-snake-kebab.core-test
(:require [camel-snake-kebab.core :as csk]
#?(:clj [clojure.test :refer :all]
:cljs [cljs.test :refer-macros [deftest testing is are]]))
#?(:clj (:import (clojure.lang ExceptionInfo))))
(testing "all the type preserving functions"
(let
[inputs ["FooBar"
"fooBar"
"FOO_BAR"
"foo_bar"
"foo-bar"
"Foo_Bar"]
functions [csk/->PascalCase
csk/->camelCase
csk/->SCREAMING_SNAKE_CASE
csk/->snake_case
csk/->kebab-case
csk/->Camel_Snake_Case]
formats [identity keyword symbol]]