- Timestamp:
- Apr 11, 2025, 12:29:56 AM (6 months ago)
- Branches:
- master
- Children:
- d03a386
- Parents:
- 3f631d6
- Location:
- tests
- Files:
-
- 12 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r3f631d6 r570e7ad 288 288 -cp ${test} ${abspath ${@}} 289 289 290 collections/string-operator-ERR01 : collections/string-operator.cfa 291 ${CFACOMPILE_SYNTAX} -DTRY_MR01 292 -cp ${test} ${abspath ${@}} 293 294 collections/string-operator-ERR02 : collections/string-operator.cfa 295 ${CFACOMPILE_SYNTAX} -DTRY_MR02 296 -cp ${test} ${abspath ${@}} 297 298 collections/string-operator-ERR03 : collections/string-operator.cfa 299 ${CFACOMPILE_SYNTAX} -DTRY_MR03 300 -cp ${test} ${abspath ${@}} 301 302 collections/string-operator-ERR04 : collections/string-operator.cfa 303 ${CFACOMPILE_SYNTAX} -DTRY_MR04 304 -cp ${test} ${abspath ${@}} 305 306 collections/string-operator-ERR05 : collections/string-operator.cfa 307 ${CFACOMPILE_SYNTAX} -DTRY_MR05 308 -cp ${test} ${abspath ${@}} 309 310 collections/string-operator-ERR06 : collections/string-operator.cfa 311 ${CFACOMPILE_SYNTAX} -DTRY_MR06 312 -cp ${test} ${abspath ${@}} 313 314 collections/string-operator-ERR07 : collections/string-operator.cfa 315 ${CFACOMPILE_SYNTAX} -DTRY_MR07 316 -cp ${test} ${abspath ${@}} 317 318 collections/string-operator-ERR08 : collections/string-operator.cfa 319 ${CFACOMPILE_SYNTAX} -DTRY_MR08 320 -cp ${test} ${abspath ${@}} 321 290 322 collections/string-operator-ERR09 : collections/string-operator.cfa 291 323 ${CFACOMPILE_SYNTAX} -DTRY_MR09 292 324 -cp ${test} ${abspath ${@}} 293 325 326 collections/string-operator-ERR10 : collections/string-operator.cfa 327 ${CFACOMPILE_SYNTAX} -DTRY_MR10 328 -cp ${test} ${abspath ${@}} 329 330 collections/string-operator-ERR11 : collections/string-operator.cfa 331 ${CFACOMPILE_SYNTAX} -DTRY_MR11 332 -cp ${test} ${abspath ${@}} 333 334 collections/string-operator-ERR13 : collections/string-operator.cfa 335 ${CFACOMPILE_SYNTAX} -DTRY_MR13 336 -cp ${test} ${abspath ${@}} 337 294 338 collections/string-operator-ERR15 : collections/string-operator.cfa 295 339 ${CFACOMPILE_SYNTAX} -DTRY_MR15 340 -cp ${test} ${abspath ${@}} 341 342 collections/string-operator-ERR16 : collections/string-operator.cfa 343 ${CFACOMPILE_SYNTAX} -DTRY_MR16 296 344 -cp ${test} ${abspath ${@}} 297 345 -
tests/collections/.expect/string-operator.txt
r3f631d6 r570e7ad 3 3 4 4 ------------- Initialization 5 Ã 5 (skip) 6 6 ab 7 7 ab 8 8 ab 9 9 10 Ãx 10 (skip) 11 11 abx 12 12 abx … … 23 23 axb 24 24 25 aaa 25 (skip) 26 26 bbb 27 ÃÃÃ 27 585 28 28 cdcdcd 29 29 30 291 30 (skip) 31 31 bbb 32 ababab 32 585 33 33 cdcdcd 34 34 35 35 ------------- Assignment 36 Ã 36 (skip) 37 37 ab 38 38 ab 39 39 ab 40 40 41 Ã 42 ab Ã43 abab Ã44 ababab Ã41 (skip) 42 ab 43 abab 44 ababab 45 45 46 46 ab … … 54 54 aaaabbbb 55 55 56 aaa 56 (skip) 57 57 bbb 58 ÃÃÃ 58 585 59 59 cdcdcd 60 60 61 291 61 (skip) 62 62 bbb 63 ababab 63 585 64 64 cdcdcd 65 65 … … 70 70 ab 71 71 72 Ãx 72 (skip) 73 73 abx 74 74 abx … … 85 85 axb 86 86 87 291 87 (skip) 88 88 bbb 89 89 585 90 90 cdcdcd 91 91 92 291 92 (skip) 93 93 bbb 94 94 585 … … 97 97 ------------- Miscellany 98 98 (skip) 99 291 99 (skip) 100 100 0x2a 0x2d -
tests/collections/string-operator.cfa
r3f631d6 r570e7ad 9 9 10 10 // These MR points do reject in the current revision, so they have satellite "-ERR" cases: 11 // MR01 12 // MR02 13 // MR03 14 // MR04 15 // MR05 16 // MR06 17 // MR07 18 // MR08 11 19 // MR09 20 // MR10 21 // MR11 22 // MR13 12 23 // MR15 24 // MR16 13 25 14 26 // These MR points do not reject in the current revision, so they join the "happy run": 15 #define TRY_MR0116 #define TRY_MR0217 #define TRY_MR0318 #define TRY_MR0419 #define TRY_MR0520 #define TRY_MR0621 #define TRY_MR0722 #define TRY_MR0823 #define TRY_MR1024 #define TRY_MR1125 27 #define TRY_MR12 26 #define TRY_MR1327 28 #define TRY_MR14 28 #define TRY_MR1629 29 30 30 … … 137 137 138 138 sout | "------------- Initialization"; 139 MR01( {string s = 'a' + 'b'; // Ãb139 MR01( {string s = 'a' + 'b'; // (ambiguous) 140 140 sout | s;} ) 141 141 {string s = 'a' + "b"; // ab … … 149 149 string s0 = "x"; 150 150 151 MR02( {string s = 'a' + 'b' + s0; // Ãx151 MR02( {string s = 'a' + 'b' + s0; // (ambiguous) 152 152 sout | s;} ) 153 153 {string s = 'a' + "b" + s0; // abx … … 179 179 sout | nl; // 180 180 181 MR03( {string s = 'a' * 3; // aaa181 MR03( {string s = 'a' * 3; // (ambiguous) 182 182 sout | s;} ) 183 183 {string s = "b" * 3; // bbb 184 184 sout | s;} 185 {string s = ('a' + 'b') * 3; // ÃÃÃ 185 {string s = ('a' + 'b') * 3; // ÃÃÃ (expecting ambiguous, likely from #309) 186 186 sout | s;} 187 187 {string s = ('c' + "d") * 3; // cdcdcd … … 189 189 sout | nl; // 190 190 191 MR04( {string s = 3 * 'a'; // 291191 MR04( {string s = 3 * 'a'; // (ambiguous) 192 192 sout | s;} ) 193 193 {string s = 3 * "b"; // bbb … … 205 205 206 206 s = ""; 207 MR05( s = 'a' + 'b'; // Ã207 MR05( s = 'a' + 'b'; // (ambiguous) 208 208 sout | s; ) 209 209 s = 'a' + "b"; // ab … … 216 216 217 217 s = ""; 218 MR06( s = 'a' + 'b' + s; // Ã218 MR06( s = 'a' + 'b' + s; // (ambiguous) 219 219 sout | s; ) 220 s = 'a' + "b" + s; // ab Ã221 sout | s; 222 s = "a" + 'b' + s; // abab Ã223 sout | s; 224 s = "a" + "b" + s; // ababab Ã220 s = 'a' + "b" + s; // ab 221 sout | s; 222 s = "a" + 'b' + s; // abab 223 sout | s; 224 s = "a" + "b" + s; // ababab 225 225 sout | s; 226 226 sout | nl; // … … 249 249 250 250 s = ""; 251 MR07( s = 'a' * 3; // aaa251 MR07( s = 'a' * 3; // (ambiguous) 252 252 sout | s; ) 253 253 s = "b" * 3; // bbb 254 254 sout | s; 255 s = ('a' + 'b') * 3; // ÃÃÃ 255 s = ('a' + 'b') * 3; // ÃÃÃ (expecting ambiguous, likely from #309) 256 256 sout | s; 257 257 s = ('c' + "d") * 3; // cdcdcd … … 260 260 261 261 s = ""; 262 MR08( s = 3 * 'a'; // 291262 MR08( s = 3 * 'a'; // (ambiguous) 263 263 sout | s; ) 264 264 s = 3 * "b"; // bbb … … 281 281 sout | nl; // 282 282 283 MR10( sout | 'a' + 'b' + s; ) // Ãx283 MR10( sout | 'a' + 'b' + s; ) // (ambiguous) 284 284 sout | 'a' + "b" + s; // abx 285 285 sout | "a" + 'b' + s; // abx … … 299 299 sout | nl; // 300 300 301 MR11( sout | 'a' * 3; ) // 291301 MR11( sout | 'a' * 3; ) // (ambiguous) 302 302 sout | "b" * 3; // bbb 303 MR12( sout | ('a' + 'b') * 3; ) // 585 303 MR12( sout | ('a' + 'b') * 3; ) // 585 (expecting ambiguous, likely from #309) 304 304 sout | ('c' + "d") * 3; // cdcdcd 305 305 sout | nl; // 306 306 307 MR13( sout | 3 * 'a'; ) // 291307 MR13( sout | 3 * 'a'; ) // (ambiguous) 308 308 sout | 3 * "b"; // bbb 309 MR14( sout | 3 * ('a' + 'b'); ) // 585 309 MR14( sout | 3 * ('a' + 'b'); ) // 585 (expecting ambiguous, likely from #309) 310 310 sout | 3 * ('c' + "d"); // cdcdcd 311 311 sout | nl; // … … 316 316 317 317 MR15( printf( "%c\n", 'a' + 'b'); ) // (ambiguous) 318 MR16( printf( "%d\n", 'a' * 3 ); ) // 291318 MR16( printf( "%d\n", 'a' * 3 ); ) // (ambiguous) 319 319 320 320 { // (picks arithmetic; there is no interpretation of `_ + 3` that's string)
Note:
See TracChangeset
for help on using the changeset viewer.