source: trunk/source/tests/ansi-tests/fill-strings.lsp @ 8991

Last change on this file since 8991 was 8991, checked in by gz, 11 years ago

Check in the gcl ansi test suite (original, in preparation for making local changes)

File size: 632 bytes
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Aug 17 08:04:27 2002
4;;;; Contains: Test cases for FILL on strings
5
6(in-package :cl-test)
7
8(deftest array-string-fill.1
9  (array-string-fill-test-fn "abcde" #\Z)
10  t "ZZZZZ")
11
12(deftest array-string-fill.2
13  (array-string-fill-test-fn "abcde" #\Z :start 2)
14  t "abZZZ")
15
16(deftest array-string-fill.3
17  (array-string-fill-test-fn "abcde" #\Z :end 3)
18  t "ZZZde")
19
20(deftest array-string-fill.4
21  (array-string-fill-test-fn "abcde" #\Z :start 1 :end 4)
22  t "aZZZe")
23
24(deftest array-string-fill.5
25  (array-string-fill-test-fn "abcde" #\Z :start 2 :end 3)
26  t "abZde")
Note: See TracBrowser for help on using the repository browser.