fix mat of substring-fill!
after the recent change, the result of substring-fill! is void 5_5.ms original commit: a2cd9856be74008cc23b6ca3476339e79a1cd5ff
This commit is contained in:
parent
f1b9fc95da
commit
dc0be2bfbe
4
LOG
4
LOG
|
@ -763,4 +763,6 @@
|
|||
to use define-who instead of repeating 'substring-fill! in all the error
|
||||
messages.
|
||||
5_4.ss, 5_6.ss
|
||||
|
||||
- fix mat of substring-fill!
|
||||
after the recent change, the result of substring-fill! is void
|
||||
5_5.ms
|
||||
|
|
|
@ -699,8 +699,12 @@
|
|||
(error? (substring-fill! 'a 0 1 #\a))
|
||||
(error? (substring-fill! "hi" 0 'a #\a))
|
||||
(error? (substring-fill! "hi" 1 0 #\a))
|
||||
(equal? (substring-fill! "hitme!" 0 5 #\a) "aaaaa!")
|
||||
(eqv? (substring-fill! "" 0 0 #\a) "")
|
||||
(let ([s (string-copy "hitme!")])
|
||||
(substring-fill! s 0 5 #\a)
|
||||
(equal? s "aaaaa!"))
|
||||
(let ([s ""])
|
||||
(substring-fill! s 0 0 #\a)
|
||||
(eqv? s ""))
|
||||
(let ([s (string-copy "ABCDE")])
|
||||
(and (begin
|
||||
(substring-fill! s 0 0 #\$)
|
||||
|
|
Loading…
Reference in New Issue
Block a user