grino/examples/string.gri

12 lines
249 B
Plaintext
Raw Normal View History

2023-09-13 11:45:09 +00:00
(assert= 'hello' 'hello')
(assert (not (eq? 'bim' 'bam')))
(assert= false (empty? 'coucou'))
(assert= true (empty? ''))
(assert= 'e' (ref 'hello' 1))
(assert= 5 (len 'hello'))
(assert= 'aaa' (dup 'a' 3))
(assert= 'abcdefg' (cat 'abc' 'def' 'g'))