xref: /freebsd/usr.bin/m4/tests/quotes.m4 (revision 06c3fb27)
1dnl $OpenBSD: src/regress/usr.bin/m4/quotes.m4,v 1.2 2005/09/06 15:33:21 espie Exp $
2dnl Checking the way changequote() is supposed to work
3define(`string',`STRING')dnl
41: normal
5`quoted string'
6[quoted string]
7normal string
8`half quoted string
9going up to that string'
10
112: kill quotes
12changequote()dnl
13`quoted string'
14[quoted string]
15normal string
16`half quoted string
17going up to that string'
18
193: normal changed quote
20changequote([,])dnl
21`quoted string'
22[quoted string]
23normal string
24`half quoted string
25going up to that string'
26
274: empty quotes, kill them too
28changequote(,)dnl
29`quoted string'
30[quoted string]
31normal string
32`half quoted string
33going up to that string'
34
355: start quote only
36changequote(`)dnl
37`quoted string'
38[quoted string]
39normal string
40`half quoted string
41going up to that string'
42
436: normal quotes are back
44changequote
45`quoted string'
46[quoted string]
47normal string
48`half quoted string
49going up to that string'
50
517: start quote+empty end quote
52changequote([,)dnl
53`quoted string'
54[quoted string]
55normal string
56`half quoted string
57going up to that string'
58