From 0381cf345da7a93c044c32cc93b3468542086c0c Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Sun, 10 Apr 2005 22:19:26 +0000 Subject: [PATCH] (string-concatenate, string-concatenate/shared): New tests. --- test-suite/tests/srfi-13.test | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/test-suite/tests/srfi-13.test b/test-suite/tests/srfi-13.test index 666d3dc4d..55826c948 100644 --- a/test-suite/tests/srfi-13.test +++ b/test-suite/tests/srfi-13.test @@ -124,6 +124,40 @@ (pass-if "more than one match, start and end index" (string-any char-upper-case? "abCDE" 1 4)))) +;;; +;;; string-concatenate +;;; + +(with-test-prefix "string-concatenate" + + (pass-if-exception "inum" exception:wrong-type-arg + (string-concatenate 123)) + + (pass-if-exception "symbol" exception:wrong-type-arg + (string-concatenate 'x)) + + (pass-if-exception "improper 1" exception:wrong-type-arg + (string-concatenate '("a" . "b"))) + + (pass-if (equal? "abc" (string-concatenate '("a" "b" "c"))))) + +;;; +;;; string-concatenate/shared +;;; + +(with-test-prefix "string-concatenate/shared" + + (pass-if-exception "inum" exception:wrong-type-arg + (string-concatenate/shared 123)) + + (pass-if-exception "symbol" exception:wrong-type-arg + (string-concatenate/shared 'x)) + + (pass-if-exception "improper 1" exception:wrong-type-arg + (string-concatenate/shared '("a" . "b"))) + + (pass-if (equal? "abc" (string-concatenate/shared '("a" "b" "c"))))) + ;;; ;;; string-every ;;;