* added tests for procedure "for-all"
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
[(or (fx= i n) (memv (string-ref str i) '(#\; #\#))) i]
|
||||
[else (find-semi/hash str (+ i 1) n)]))
|
||||
|
||||
(define (cleanup^ str)
|
||||
(define (cleanup str)
|
||||
(let ([lo
|
||||
(let f ([i 0] [n (string-length str)])
|
||||
(cond
|
||||
@@ -40,13 +40,6 @@
|
||||
(substring str lo hi)
|
||||
"")))
|
||||
|
||||
(define (cleanup str)
|
||||
(let ([s (cleanup^ str)])
|
||||
(when
|
||||
(and (= (string-length str) 1)
|
||||
(not (= (string-length s) 1)))
|
||||
(error 'cleanup "duuh ~s ~s" s str))
|
||||
s))
|
||||
|
||||
(define (split str)
|
||||
(let f ([i 0] [n (string-length str)])
|
||||
|
||||
Reference in New Issue
Block a user