@@ -15,13 +15,61 @@ Execution failed because program produced no output.
15
15
The first expected line was:
16
16
Hello!
17
17
18
- *** Test 3 - trailing-white-space-1
18
+ *** Test 3 - one-byte-missing-fail
19
+ *** Test Environment
20
+ expected output: Hello!
21
+
22
+ actual output : Hello
23
+
24
+
25
+ Execution stopped because of an incorrect output line.
26
+ Byte 6 of line 1 of program output was incorrect.
27
+ A '!' was missing from the end of the output line.
28
+ The correct output line was:
29
+ Hello!
30
+ Your program printed this line:
31
+ Hello
32
+
33
+ Execution stopped in main(argc=2, argv=0x<deleted-hexadecimal-constant>) in tmp.c at line 2:
34
+
35
+ #include <stdio.h>
36
+ -->int main(int argc, char *argv[]) {printf("%s", argv[1]);return 0;}
37
+
38
+ Values when execution stopped:
39
+
40
+ argc = <deleted-value>
41
+ argv[1] = <deleted-value>
42
+ *** Test 4 - two-bytes-missing-fail
43
+ *** Test Environment
44
+ expected output: Hello!
45
+
46
+ actual output : Hell
47
+
48
+
49
+ Execution stopped because of an incorrect output line.
50
+ Byte 5 of line 1 of program output was incorrect.
51
+ The characters you printed were correct, but more characters were expected.
52
+ The correct output line was:
53
+ Hello!
54
+ Your program printed this line:
55
+ Hell
56
+
57
+ Execution stopped in main(argc=2, argv=0x<deleted-hexadecimal-constant>) in tmp.c at line 2:
58
+
59
+ #include <stdio.h>
60
+ -->int main(int argc, char *argv[]) {printf("%s", argv[1]);return 0;}
61
+
62
+ Values when execution stopped:
63
+
64
+ argc = <deleted-value>
65
+ argv[1] = <deleted-value>
66
+ *** Test 5 - trailing-white-space-1
19
67
*** Test Environment
20
68
expected output: Hello!
21
69
22
70
actual output : Hello!
23
71
24
- *** Test 4 - trailing-white-space-2-fail
72
+ *** Test 6 - trailing-white-space-2-fail
25
73
*** Test Environment DCC_IGNORE_TRAILING_WHITE_SPACE=0
26
74
expected output: Hello!
27
75
@@ -44,7 +92,7 @@ Values when execution stopped:
44
92
45
93
argc = <deleted-value>
46
94
argv[1] = <deleted-value>
47
- *** Test 5 - extra-new-line-1-fail
95
+ *** Test 7 - extra-new-line-1-fail
48
96
*** Test Environment
49
97
expected output: Hello!
50
98
@@ -65,14 +113,14 @@ Values when execution stopped:
65
113
66
114
argc = <deleted-value>
67
115
argv[1] = <deleted-value>
68
- *** Test 6 - extra-new-line-2
116
+ *** Test 8 - extra-new-line-2
69
117
*** Test Environment DCC_IGNORE_EMPTY_LINES=1
70
118
expected output: Hello!
71
119
72
120
actual output : Hello!
73
121
74
122
75
- *** Test 7 - missing-new-line-1-fail
123
+ *** Test 9 - missing-new-line-1-fail
76
124
*** Test Environment
77
125
expected output: Hello!
78
126
@@ -83,7 +131,7 @@ Your program produced all the expected output, except the last newline ('\n') wa
83
131
84
132
For more information go to https://comp1511unsw.github.io/dcc/missing_newline.html
85
133
86
- *** Test 8 - ignore-case-1-fail
134
+ *** Test 10 - ignore-case-1-fail
87
135
*** Test Environment
88
136
expected output: Hello!
89
137
@@ -106,13 +154,13 @@ Values when execution stopped:
106
154
107
155
argc = <deleted-value>
108
156
argv[1] = <deleted-value>
109
- *** Test 9 - ignore-case-2
157
+ *** Test 11 - ignore-case-2
110
158
*** Test Environment DCC_IGNORE_CASE=1
111
159
expected output: Hello!
112
160
113
161
actual output : hEllo!
114
162
115
- *** Test 10 - ignore-white-space-1-fail
163
+ *** Test 12 - ignore-white-space-1-fail
116
164
*** Test Environment
117
165
expected output: Hello!
118
166
@@ -135,19 +183,19 @@ Values when execution stopped:
135
183
136
184
argc = <deleted-value>
137
185
argv[1] = <deleted-value>
138
- *** Test 11 - ignore-white-space-2
186
+ *** Test 13 - ignore-white-space-2
139
187
*** Test Environment DCC_IGNORE_WHITE_SPACE=1
140
188
expected output: Hello!
141
189
142
190
actual output : H ello !
143
191
144
- *** Test 12 - ignore-characters-1
192
+ *** Test 14 - ignore-characters-1
145
193
*** Test Environment DCC_IGNORE_CHARACTERS=+
146
194
expected output: Hello!
147
195
148
196
actual output : +++Hello!+++
149
197
150
- *** Test 13 - ignore-characters-2-fail
198
+ *** Test 15 - ignore-characters-2-fail
151
199
*** Test Environment DCC_IGNORE_CHARACTERS=lzn
152
200
expected output: Hello!
153
201
@@ -171,13 +219,13 @@ Values when execution stopped:
171
219
172
220
argc = <deleted-value>
173
221
argv[1] = <deleted-value>
174
- *** Test 14 - ignore-characters-3
222
+ *** Test 16 - ignore-characters-3
175
223
*** Test Environment DCC_IGNORE_CHARACTERS=lzno!
176
224
expected output: Hello!
177
225
178
226
actual output : Hen
179
227
180
- *** Test 15 - compare-only-characters-1-fail
228
+ *** Test 17 - compare-only-characters-1-fail
181
229
*** Test Environment DCC_COMPARE_ONLY_CHARACTERS=Hel
182
230
expected output: Hello!
183
231
@@ -200,13 +248,13 @@ Values when execution stopped:
200
248
201
249
argc = <deleted-value>
202
250
argv[1] = <deleted-value>
203
- *** Test 16 - compare-only-characters-2
251
+ *** Test 18 - compare-only-characters-2
204
252
*** Test Environment DCC_COMPARE_ONLY_CHARACTERS=el
205
253
expected output: Hello!
206
254
207
255
actual output : HiheHilloHi !
208
256
209
- *** Test 17 - compare-only-characters-3-fail
257
+ *** Test 19 - compare-only-characters-3-fail
210
258
*** Test Environment DCC_COMPARE_ONLY_CHARACTERS=hel
211
259
expected output: Hello!
212
260
@@ -229,7 +277,7 @@ Values when execution stopped:
229
277
230
278
argc = <deleted-value>
231
279
argv[1] = <deleted-value>
232
- *** Test 18 - compare-only-characters-4
280
+ *** Test 20 - compare-only-characters-4
233
281
*** Test Environment DCC_IGNORE_CASE=1 DCC_COMPARE_ONLY_CHARACTERS=hel
234
282
expected output: Hello!
235
283
0 commit comments