You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use this code:
(def ISBN-LENGTH 13)
(def OLD-ISBN-LENGTH 10)
(defn valid-isbn [isbn]
(or (= (count isbn) OLD-ISBN-LENGTH)
(= (count isbn) ISBN-LENGTH)))
And then enter: (valid-isbn 05967)
and submit for evaluation, nothing at all happens, no error message.
It has a leading zero so is invalid code but still should present an error message of some sort I would think.
The text was updated successfully, but these errors were encountered:
When I use this code:
(def ISBN-LENGTH 13)
(def OLD-ISBN-LENGTH 10)
(defn valid-isbn [isbn]
(or (= (count isbn) OLD-ISBN-LENGTH)
(= (count isbn) ISBN-LENGTH)))
And then enter: (valid-isbn 05967)
and submit for evaluation, nothing at all happens, no error message.
It has a leading zero so is invalid code but still should present an error message of some sort I would think.
The text was updated successfully, but these errors were encountered: