* added tests for procedure "for-all"

This commit is contained in:
Abdulaziz Ghuloum
2007-10-10 05:28:07 -04:00
parent 82eb606715
commit 995944723d
6 changed files with 27 additions and 13 deletions
+1 -8
View File
@@ -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)])