Finish second koan

This commit is contained in:
Matt Davidson 2022-11-04 13:51:11 +00:00
parent 4580850fc3
commit d6eb655d9b

View file

@ -52,19 +52,20 @@
(= true (char? \c))
"But it may not be"
(= __ (char? "a"))
(= false (char? "a"))
"But chars aren't strings"
(= __ (string? \b))
(= false (string? \b))
"Strings are strings"
(= true (string? __))
(= true (string? "a"))
"Some strings may be blank"
(= __ (string/blank? ""))
(= true (string/blank? ""))
"Even if at first glance they aren't"
(= __ (string/blank? " \n \t "))
(= true (string/blank? " \n \t "))
"However, most strings aren't blank"
(= __ (string/blank? "hello?\nare you out there?")))
(= false (string/blank? "hello?\nare you out there?")))