Finish second koan
This commit is contained in:
parent
4580850fc3
commit
d6eb655d9b
1 changed files with 7 additions and 6 deletions
|
|
@ -52,19 +52,20 @@
|
||||||
(= true (char? \c))
|
(= true (char? \c))
|
||||||
|
|
||||||
"But it may not be"
|
"But it may not be"
|
||||||
(= __ (char? "a"))
|
(= false (char? "a"))
|
||||||
|
|
||||||
"But chars aren't strings"
|
"But chars aren't strings"
|
||||||
(= __ (string? \b))
|
(= false (string? \b))
|
||||||
|
|
||||||
"Strings are strings"
|
"Strings are strings"
|
||||||
(= true (string? __))
|
(= true (string? "a"))
|
||||||
|
|
||||||
"Some strings may be blank"
|
"Some strings may be blank"
|
||||||
(= __ (string/blank? ""))
|
(= true (string/blank? ""))
|
||||||
|
|
||||||
"Even if at first glance they aren't"
|
"Even if at first glance they aren't"
|
||||||
(= __ (string/blank? " \n \t "))
|
(= true (string/blank? " \n \t "))
|
||||||
|
|
||||||
"However, most strings aren't blank"
|
"However, most strings aren't blank"
|
||||||
(= __ (string/blank? "hello?\nare you out there?")))
|
(= false (string/blank? "hello?\nare you out there?")))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue