- Timestamp:
- Oct 8, 2023, 9:14:31 AM (2 years ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- 92211d9
- Parents:
- 2261bcc (diff), 9689e54 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests/io
- Files:
-
- 5 edited
-
.expect/manipulatorsInput.arm64.txt (modified) (3 diffs)
-
.expect/manipulatorsInput.x64.txt (modified) (3 diffs)
-
.expect/manipulatorsInput.x86.txt (modified) (3 diffs)
-
.in/manipulatorsInput.txt (modified) (1 diff)
-
manipulatorsInput.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/io/.expect/manipulatorsInput.arm64.txt
r2261bcc rf45772e 1 1 pre1 "123456", canary ok 2 pre2a "1234567", exception occurred, canary ok 3 pre2b "89", canary ok 2 pre2 "1234567", canary ok 3 pre3a "1234567", exception occurred, canary ok 4 pre3b "8", canary ok 5 pre4a "1234567", exception occurred, canary ok 6 pre4b "89", canary ok 4 7 1 yyyyyyyyyyyyyyyyyyyy 5 8 2 abcxxx … … 15 18 12 wwwwwwww 16 19 13 wwwwwwww 20 14 rc=1, cccc 21 15 rc=0, q 17 22 1 yyyyyyyyyyyyyyyyyyyy 18 23 2 abcxxx … … 28 33 12 wwwwwwww 29 34 13 wwwwwwww 35 14 cccc 36 15 30 37 a 31 38 a -
tests/io/.expect/manipulatorsInput.x64.txt
r2261bcc rf45772e 1 1 pre1 "123456", canary ok 2 pre2a "1234567", exception occurred, canary ok 3 pre2b "89", canary ok 2 pre2 "1234567", canary ok 3 pre3a "1234567", exception occurred, canary ok 4 pre3b "8", canary ok 5 pre4a "1234567", exception occurred, canary ok 6 pre4b "89", canary ok 4 7 1 yyyyyyyyyyyyyyyyyyyy 5 8 2 abcxxx … … 15 18 12 wwwwwwww 16 19 13 wwwwwwww 20 14 rc=1, cccc 21 15 rc=0, q 17 22 1 yyyyyyyyyyyyyyyyyyyy 18 23 2 abcxxx … … 28 33 12 wwwwwwww 29 34 13 wwwwwwww 35 14 cccc 36 15 30 37 a 31 38 a -
tests/io/.expect/manipulatorsInput.x86.txt
r2261bcc rf45772e 1 1 pre1 "123456", canary ok 2 pre2a "1234567", exception occurred, canary ok 3 pre2b "89", canary ok 2 pre2 "1234567", canary ok 3 pre3a "1234567", exception occurred, canary ok 4 pre3b "8", canary ok 5 pre4a "1234567", exception occurred, canary ok 6 pre4b "89", canary ok 4 7 1 yyyyyyyyyyyyyyyyyyyy 5 8 2 abcxxx … … 15 18 12 wwwwwwww 16 19 13 wwwwwwww 20 14 rc=1, cccc 21 15 rc=0, q 17 22 1 yyyyyyyyyyyyyyyyyyyy 18 23 2 abcxxx … … 28 33 12 wwwwwwww 29 34 13 wwwwwwww 35 14 cccc 36 15 30 37 a 31 38 a -
tests/io/.in/manipulatorsInput.txt
r2261bcc rf45772e 1 1 123456 2 1234567 3 12345678 2 4 123456789 3 5 abc 4 abc6 cccccb 5 7 xx 6 8 abcxxx 7 9 abcyyy 8 10 aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww 11 uuuuuccccuuuuu 9 12 abc 10 abc13 cccccb 11 14 xx 12 15 abcxxx 13 16 abcyyy 14 17 aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww 18 uuuuuccccuuuuu 15 19 ab 16 20 0xff 017 15-15 -
tests/io/manipulatorsInput.cfa
r2261bcc rf45772e 45 45 } 46 46 47 rep("pre1"); 48 rep("pre2a"); 49 rep("pre2b"); 47 rep("pre1"); // 123456 | 123456 48 rep("pre2"); // 1234567 | 1234567 49 rep("pre3a"); // 12345678 | 1234567 50 rep("pre3b"); // | 8 51 rep("pre4a"); // 123456789 | 1234567 52 rep("pre4b"); // | 89 53 50 54 scanf("\n"); // next test does not start with %s so does not tolerate leading whitespace 51 55 } 52 56 { 53 57 char s[] = "yyyyyyyyyyyyyyyyyyyy"; 54 const char sk [] = "abc";55 scanf( "abc " ); scanf( sk ); for ( 5 ) scanf( "%*c" );printf( "1 %s\n", s );58 const char sk_fmt[] = "%*[abc]"; 59 scanf( "abc " ); scanf( sk_fmt ); for ( 5 ) scanf( "%*c" ); printf( "1 %s\n", s ); 56 60 scanf( "%s", s ); printf( "2 %s\n", s ); 57 61 scanf( "%*s" ); printf( "3 %s\n", s ); … … 67 71 scanf( "%*8[abc]" ); printf( "12 %s\n", s ); 68 72 scanf( "%*8[^abc]" ); printf( "13 %s\n", s ); 73 74 int rc; 75 s[0] = 'q'; s[1] = '\0'; rc = 99; 76 rc = scanf( "%[abc]", s ); printf( "14 rc=%d, %s\n", rc, s ); 77 s[0] = 'q'; s[1] = '\0'; rc = 99; 78 rc = scanf( "%[^u]", s ); printf( "15 rc=%d, %s\n", rc, s ); 79 scanf( "%*[u]" ); 80 scanf("\n"); 69 81 } 70 82 { … … 85 97 sin | ignore( incl( "abc", wdi( sizeof(s), 8, s ) ) ); sout | "12" | s; 86 98 sin | ignore( excl( "abc", wdi( sizeof(s), 8, s ) ) ); sout | "13" | s; 99 100 s[0] = 'q'; s[1] = '\0'; 101 sin | incl( "abc", wdi( sizeof(s), s ) ); sout | "14" | s; 102 s[0] = 'q'; s[1] = '\0'; 103 sin | excl( "u", wdi( sizeof(s), s ) ); sout | "15" | s; 104 sin | skip( "u" ); 105 sin | "\n"; 87 106 } 88 107 /* Keep harmonized with collections/string-istream-manip */
Note:
See TracChangeset
for help on using the changeset viewer.