source: trunk/source/tests/ansi-tests/format-i.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: 1.7 KB
Line 
1;-*- Mode:     Lisp -*-
2;;;; Author:   Paul Dietz
3;;;; Created:  Sat Aug 21 07:01:36 2004
4;;;; Contains: Tests for the ~I format directive
5
6(in-package :cl-test)
7
8(compile-and-load "printer-aux.lsp")
9
10;;; pprint-indent.9
11(def-pprint-test format.i.1
12  (format nil "~<M~3:i~:@_M~:>" '(M M))
13  "M
14    M")
15
16;;; See pprint-indent.10
17(def-pprint-test format.i.2
18  (format nil "~:<M~1:I~@:_M~:>" '(M M))
19  "(M
20   M)")
21
22;;; See pprint-indent.11
23(def-pprint-test format.i.3
24  (format nil "~<(~;M~-1:i~:@_M~;)~:>" '(M M))
25  "(M
26 M)")
27
28(def-pprint-test format.i.4
29  (format nil "~:<M~-1:i~:@_M~:>" '(M M))
30  "(M
31 M)")
32
33(def-pprint-test format.i.5
34  (format nil "~<(~;M~:I~:@_M~;)~:>" '(M M))
35  "(M
36  M)")
37
38(def-pprint-test format.i.6
39  (format nil "~<(~;M~v:i~:@_M~;)~:>" '(nil))
40  "(M
41  M)")
42
43(def-pprint-test format.i.7
44  (format nil "~:<M~-2:i~:@_M~:>" '(M M))
45  "(M
46M)")
47
48(def-pprint-test format.i.8
49  (format nil "~<M~:i~:@_M~:>" '(M M))
50  "M
51 M")
52
53;;; See pprint-indent.13
54(def-pprint-test format.i.9
55  (format nil "~<MMM~I~:@_MMMMM~:>" '(M M))
56  "MMM
57MMMMM")
58
59(def-pprint-test format.i.10
60  (format nil "~:<MMM~I~:@_MMMMM~:>" '(M M))
61  "(MMM
62 MMMMM)")
63
64(def-pprint-test format.i.11
65  (format nil "~<MMM~1I~:@_MMMMM~:>" '(M M))
66  "MMM
67 MMMMM")
68
69(def-pprint-test format.i.12
70  (format nil "XXX~<MMM~1I~:@_MMMMM~:>" '(M M))
71  "XXXMMM
72    MMMMM")
73
74(def-pprint-test format.i.13
75  (format nil "XXX~<MMM~I~:@_MMMMM~:>" '(M M))
76  "XXXMMM
77   MMMMM")
78
79(def-pprint-test format.i.14
80  (format nil "XXX~<MMM~-1I~:@_MMMMM~:>" '(M M))
81  "XXXMMM
82  MMMMM")
83
84(def-pprint-test format.i.15
85  (format nil "XXX~<MMM~vI~:@_MMMMM~:>" '(nil))
86  "XXXMMM
87   MMMMM")
88
89(def-pprint-test format.i.16
90  (format nil "XXX~<MMM~vI~:@_MMMMM~:>" '(2))
91  "XXXMMM
92     MMMMM")
Note: See TracBrowser for help on using the repository browser.