From 2615ce11bd02bf4495acd5c2a017ceaa621b8ed3 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 28 Jun 2014 21:54:19 +0900 Subject: [PATCH] unlock string-fill! tests --- t/r7rs-tests.scm | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/t/r7rs-tests.scm b/t/r7rs-tests.scm index 59903db3..ec97e20c 100644 --- a/t/r7rs-tests.scm +++ b/t/r7rs-tests.scm @@ -1292,29 +1292,29 @@ (test "b" (string-copy "abc" 1 2)) (test "bc" (string-copy "abc" 1 3)) -;; (test "-----" -;; (let ((str (make-string 5 #\x))) (string-fill! str #\-) str)) -;; (test "xx---" -;; (let ((str (make-string 5 #\x))) (string-fill! str #\- 2) str)) -;; (test "xx-xx" -;; (let ((str (make-string 5 #\x))) (string-fill! str #\- 2 3) str)) +(test "-----" + (let ((str (make-string 5 #\x))) (string-fill! str #\-) str)) +(test "xx---" + (let ((str (make-string 5 #\x))) (string-fill! str #\- 2) str)) +(test "xx-xx" + (let ((str (make-string 5 #\x))) (string-fill! str #\- 2 3) str)) -;; (test "a12de" -;; (let ((str (string-copy "abcde"))) (string-copy! str 1 "12345" 0 2) str)) -;; (test "-----" -;; (let ((str (make-string 5 #\x))) (string-copy! str 0 "-----") str)) -;; (test "---xx" -;; (let ((str (make-string 5 #\x))) (string-copy! str 0 "-----" 2) str)) -;; (test "xx---" -;; (let ((str (make-string 5 #\x))) (string-copy! str 2 "-----" 0 3) str)) -;; (test "xx-xx" -;; (let ((str (make-string 5 #\x))) (string-copy! str 2 "-----" 2 3) str)) +(test "a12de" + (let ((str (string-copy "abcde"))) (string-copy! str 1 "12345" 0 2) str)) +(test "-----" + (let ((str (make-string 5 #\x))) (string-copy! str 0 "-----") str)) +(test "---xx" + (let ((str (make-string 5 #\x))) (string-copy! str 0 "-----" 2) str)) +(test "xx---" + (let ((str (make-string 5 #\x))) (string-copy! str 2 "-----" 0 3) str)) +(test "xx-xx" + (let ((str (make-string 5 #\x))) (string-copy! str 2 "-----" 2 3) str)) ;; same source and dest -;; (test "aabde" -;; (let ((str (string-copy "abcde"))) (string-copy! str 1 str 0 2) str)) -;; (test "abcab" -;; (let ((str (string-copy "abcde"))) (string-copy! str 3 str 0 2) str)) +(test "aabde" + (let ((str (string-copy "abcde"))) (string-copy! str 1 str 0 2) str)) +(test "abcab" + (let ((str (string-copy "abcde"))) (string-copy! str 3 str 0 2) str)) (test-end)