Back
->kebab-case-symbol (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 "some of the type converting functions"
(are [x y] (= x y)
:FooBar (csk/->PascalCaseKeyword 'foo-bar)
"FOO_BAR" (csk/->SCREAMING_SNAKE_CASE_STRING :foo-bar)
'foo-bar (csk/->kebab-case-symbol "foo bar")))