/[eiffelstudio]/trunk/eweasel/tests/syntax045/tcf
ViewVC logotype

Contents of /trunk/eweasel/tests/syntax045/tcf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 98928 - (show annotations)
Thu Jun 16 13:27:57 2016 UTC (3 years, 7 months ago) by manus
File size: 6745 byte(s)
Due to the way the precompiled library is now built there is no need to perform a C compilation anymore.

1 test_name verbatim-manifest-string
2 test_description Verbatim manifest strings
3
4 -- Verbatim strings with braces and "old_verbatim_strings (yes)"
5
6 define EMPTY ""
7 define INDENT "%T%T%T%T"
8 define SPACE " "
9 define OPEN "{"
10 define OPEN_CODE "123"
11 define CLOSE "}"
12 define CLOSE_CODE "125"
13 define CLOSE_OTHER "]"
14 define CLOSE_OTHER_CODE "93"
15 define OLD_VERBATIM_STRINGS "<setting name="old_verbatim_strings" value="true"/>"
16 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
17
18 copy_sub Ace $TEST Ace
19 copy_sub test.e $CLUSTER test.e
20
21 compile_melted
22 compile_result ok
23
24 execute_work NONE old_brace_output
25 execute_result ok
26
27 compare old_brace_output output
28
29 cleanup_compile
30
31 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
32 copy_sub Ace $TEST Ace
33 compile_melted
34 compile_result ok
35 cleanup_compile
36
37 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="true"/>"
38 copy_sub Ace $TEST Ace
39 compile_melted
40 compile_result ok
41 cleanup_compile
42
43 -- Verbatim strings with braces and "old_verbatim_strings (no)"
44
45 define OLD_VERBATIM_STRINGS "<setting name="old_verbatim_strings" value="false"/>"
46 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
47
48 copy_sub Ace $TEST Ace
49
50 compile_melted
51 compile_result ok
52
53 execute_work NONE new_brace_output
54 execute_result ok
55
56 compare new_brace_output output
57
58 cleanup_compile
59
60 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
61 copy_sub Ace $TEST Ace
62 compile_melted
63 compile_result ok
64 cleanup_compile
65
66 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="true"/>"
67 copy_sub Ace $TEST Ace
68 compile_melted
69 compile_result ok
70 cleanup_compile
71
72 -- Verbatim strings with braces and no special options
73
74 define OLD_VERBATIM_STRINGS ""
75 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
76
77 copy_sub Ace $TEST Ace
78
79 compile_melted
80 compile_result ok
81
82 execute_work NONE brace_output
83 execute_result ok
84
85 compare brace_output output
86
87 cleanup_compile
88
89 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
90 copy_sub Ace $TEST Ace
91 compile_melted
92 compile_result ok
93 cleanup_compile
94
95 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="true"/>"
96 copy_sub Ace $TEST Ace
97 compile_melted
98 compile_result ok
99 cleanup_compile
100
101 -- Verbatim strings with brackets and "<setting name="old_verbatim_strings" value="true"/>"
102
103 define INDENT ""
104 define SPACE ""
105 define OPEN "["
106 define OPEN_CODE "91"
107 define CLOSE "]"
108 define CLOSE_CODE "93"
109 define CLOSE_OTHER "}"
110 define CLOSE_OTHER_CODE "125"
111 define OLD_VERBATIM_STRINGS "<setting name="old_verbatim_strings" value="true"/>"
112 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
113
114 copy_sub Ace $TEST Ace
115 copy_sub test.e $CLUSTER test.e
116
117 compile_melted
118 compile_result ok
119
120 execute_work NONE old_bracket_output
121 execute_result ok
122
123 compare old_bracket_output output
124
125 cleanup_compile
126
127 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
128 copy_sub Ace $TEST Ace
129 compile_melted
130 compile_result ok
131 cleanup_compile
132
133 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="true"/>"
134 copy_sub Ace $TEST Ace
135 compile_melted
136 compile_result ok
137 cleanup_compile
138
139 -- Verbatim strings with brackets and "old_verbatim_strings (no)"
140
141 define INDENT ""
142 define SPACE ""
143 define OLD_VERBATIM_STRINGS "<setting name="old_verbatim_strings" value="false"/>"
144 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
145
146 copy_sub Ace $TEST Ace
147 copy_sub test.e $CLUSTER test.e
148
149 compile_melted
150 compile_result ok
151
152 execute_work NONE new_bracket_output
153 execute_result ok
154
155 compare new_bracket_output output
156
157 cleanup_compile
158
159 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
160 copy_sub Ace $TEST Ace
161 compile_melted
162 compile_result ok
163 cleanup_compile
164
165 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="true"/>"
166 copy_sub Ace $TEST Ace
167 compile_melted
168 compile_result ok
169 cleanup_compile
170
171 -- Verbatim strings with brackets and no special options
172
173 define OLD_VERBATIM_STRINGS ""
174 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
175
176 copy_sub Ace $TEST Ace
177
178 compile_melted
179 compile_result ok
180
181 execute_work NONE bracket_output
182 execute_result ok
183
184 compare bracket_output output
185
186 cleanup_compile
187
188 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
189 copy_sub Ace $TEST Ace
190 compile_melted
191 compile_result ok
192 cleanup_compile
193
194 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="true"/>"
195 copy_sub Ace $TEST Ace
196 compile_melted
197 compile_result ok
198 cleanup_compile
199
200 -- Test for invalid strings
201
202 define OLD_VERBATIM_STRINGS ""
203 define OLD_VERBATIM_STRINGS_WARNING "<warning name="old_verbatim_strings" enabled="false"/>"
204 copy_sub Ace $TEST Ace
205
206 define LINE1 ""
207 define LINE2 ""
208
209 define LINE1 """
210 copy_sub test_invalid_syntax.e $CLUSTER test.e
211 compile_melted
212 compile_result syntax_error TEST 15
213 abort_compile
214
215 define LINE1 ""a"
216 copy_sub test_invalid_syntax.e $CLUSTER test.e
217 compile_melted
218 compile_result syntax_error TEST 15
219 abort_compile
220
221 define LINE1 ""["
222 copy_sub test_invalid_syntax.e $CLUSTER test.e
223 compile_melted
224 compile_result syntax_error TEST 19
225 abort_compile
226
227 define LINE1 ""{"
228 copy_sub test_invalid_syntax.e $CLUSTER test.e
229 compile_melted
230 compile_result syntax_error TEST 19
231 abort_compile
232
233 define LINE1 ""a["
234 copy_sub test_invalid_syntax.e $CLUSTER test.e
235 compile_melted
236 compile_result syntax_error TEST 19
237 abort_compile
238
239 define LINE1 ""a{"
240 copy_sub test_invalid_syntax.e $CLUSTER test.e
241 compile_melted
242 compile_result syntax_error TEST 19
243 abort_compile
244
245 define LINE1 "a""
246 copy_sub test_invalid_syntax.e $CLUSTER test.e
247 compile_melted
248 compile_result syntax_error TEST 15
249 abort_compile
250
251 define LINE1 ""%"
252 copy_sub test_invalid_syntax.e $CLUSTER test.e
253 compile_melted
254 compile_result syntax_error TEST 15
255 abort_compile
256
257 define LINE1 ""a["
258 define LINE2 "]b""
259 copy_sub test_invalid_syntax.e $CLUSTER test.e
260 compile_melted
261 compile_result syntax_error TEST 19
262 abort_compile
263
264 define LINE1 ""a{"
265 define LINE2 "}b""
266 copy_sub test_invalid_syntax.e $CLUSTER test.e
267 compile_melted
268 compile_result syntax_error TEST 19
269 abort_compile
270
271 define LINE1 ""["
272 define LINE2 "}""
273 copy_sub test_invalid_syntax.e $CLUSTER test.e
274 compile_melted
275 compile_result syntax_error TEST 19
276 abort_compile
277
278 define LINE1 ""{"
279 define LINE2 "]""
280 copy_sub test_invalid_syntax.e $CLUSTER test.e
281 compile_melted
282 compile_result syntax_error TEST 19
283 abort_compile
284
285 test_end

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.23