This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-21
Channels
- # announcements (3)
- # aws (11)
- # babashka (5)
- # beginners (116)
- # cider (30)
- # clara (1)
- # clj-kondo (15)
- # clojure (17)
- # clojure-dev (9)
- # clojure-europe (2)
- # clojure-italy (1)
- # clojure-uk (3)
- # clojurescript (9)
- # conjure (3)
- # duct (22)
- # exercism (1)
- # fulcro (8)
- # graalvm (5)
- # graphql (3)
- # helix (3)
- # joker (3)
- # kaocha (2)
- # off-topic (9)
- # pathom (4)
- # re-frame (1)
- # rum (6)
- # shadow-cljs (81)
- # sql (6)
- # xtdb (9)
Hi
On the phone number problem
The first test for the phone-number/number
function is supposed to return a clean number:
(deftest cleans-number
(is (= "1234567890" (phone-number/number "(123) 456-7890"))))
But the explanation text states:
> The format is usually represented as
> (NXX)-NXX-XXXX
> where N
is any digit from 2 through 9 and X
is any digit from 0 through 9.
Should the number in the first test not return an invalid number?
Because the first block 123 starting with 1.