xref: /freebsd/usr.bin/m4/tests/quotes.m4 (revision 3bdf775801b218aa5a89564839405b122f4b233e)
1dnl $FreeBSD$
2dnl $OpenBSD: src/regress/usr.bin/m4/quotes.m4,v 1.2 2005/09/06 15:33:21 espie Exp $
3dnl Checking the way changequote() is supposed to work
4define(`string',`STRING')dnl
51: normal
6`quoted string'
7[quoted string]
8normal string
9`half quoted string
10going up to that string'
11
122: kill quotes
13changequote()dnl
14`quoted string'
15[quoted string]
16normal string
17`half quoted string
18going up to that string'
19
203: normal changed quote
21changequote([,])dnl
22`quoted string'
23[quoted string]
24normal string
25`half quoted string
26going up to that string'
27
284: empty quotes, kill them too
29changequote(,)dnl
30`quoted string'
31[quoted string]
32normal string
33`half quoted string
34going up to that string'
35
365: start quote only
37changequote(`)dnl
38`quoted string'
39[quoted string]
40normal string
41`half quoted string
42going up to that string'
43
446: normal quotes are back
45changequote
46`quoted string'
47[quoted string]
48normal string
49`half quoted string
50going up to that string'
51
527: start quote+empty end quote
53changequote([,)dnl
54`quoted string'
55[quoted string]
56normal string
57`half quoted string
58going up to that string'
59