]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - usr.bin/m4/tests/quotes.m4
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / usr.bin / m4 / tests / quotes.m4
1 dnl $FreeBSD$
2 dnl $OpenBSD: src/regress/usr.bin/m4/quotes.m4,v 1.2 2005/09/06 15:33:21 espie Exp $
3 dnl Checking the way changequote() is supposed to work
4 define(`string',`STRING')dnl
5 1: normal
6 `quoted string'
7 [quoted string]
8 normal string
9 `half quoted string
10 going up to that string'
11
12 2: kill quotes
13 changequote()dnl
14 `quoted string'
15 [quoted string]
16 normal string
17 `half quoted string
18 going up to that string'
19
20 3: normal changed quote
21 changequote([,])dnl
22 `quoted string'
23 [quoted string]
24 normal string
25 `half quoted string
26 going up to that string'
27
28 4: empty quotes, kill them too
29 changequote(,)dnl
30 `quoted string'
31 [quoted string]
32 normal string
33 `half quoted string
34 going up to that string'
35
36 5: start quote only
37 changequote(`)dnl
38 `quoted string'
39 [quoted string]
40 normal string
41 `half quoted string
42 going up to that string'
43
44 6: normal quotes are back
45 changequote
46 `quoted string'
47 [quoted string]
48 normal string
49 `half quoted string
50 going up to that string'
51
52 7: start quote+empty end quote
53 changequote([,)dnl
54 `quoted string'
55 [quoted string]
56 normal string
57 `half quoted string
58 going up to that string'