Changeset ca2feff for tests/io


Ignore:
Timestamp:
Jan 4, 2024, 12:10:38 PM (5 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
40002c5
Parents:
e7eb1f0
Message:

update manipulator testing and expected output

Location:
tests/io
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tests/io/.expect/manipulatorsInput.arm64.txt

    re7eb1f0 rca2feff  
    202014 rc=1, cccc
    212115 rc=0, q
     2216 get this line
     2317 @# this line 1)-{}
     2418 abc
     2519 abc 
     2620  d d
     27
     28d
     2921              ZC44%
    22301 yyyyyyyyyyyyyyyyyyyy
    23312 abcxxx
     
    354314 cccc
    364415
     4516 get this line
     4617 @# this line 1)-{}
     4718 abc
     4819 abc 
     4920 d d
     50
     51d
     5221              ZC44%
    3753a
    3854a
  • tests/io/.expect/manipulatorsInput.x64.txt

    re7eb1f0 rca2feff  
    202014 rc=1, cccc
    212115 rc=0, q
     2216 get this line
     2317 @# this line 1)-{}
     2418 abc
     2519 abc 
     2620  d d
     27
     28d
     2921              ZC44%
    22301 yyyyyyyyyyyyyyyyyyyy
    23312 abcxxx
     
    354314 cccc
    364415
     4516 get this line
     4617 @# this line 1)-{}
     4718 abc
     4819 abc 
     4920 d d
     50
     51d
     5221              ZC44%
    3753a
    3854a
  • tests/io/.expect/manipulatorsInput.x86.txt

    re7eb1f0 rca2feff  
    202014 rc=1, cccc
    212115 rc=0, q
     2216 get this line
     2317 @# this line 1)-{}
     2418 abc
     2519 abc 
     2620  d d
     27
     28d
     2921              ZC44%
    22301 yyyyyyyyyyyyyyyyyyyy
    23312 abcxxx
     
    354314 cccc
    364415
     4516 get this line
     4617 @# this line 1)-{}
     4718 abc
     4819 abc 
     4920 d d
     50
     51d
     5221              ZC44%
    3753a
    3854a
  • tests/io/.in/manipulatorsInput.txt

    re7eb1f0 rca2feff  
    1010aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww
    1111uuuuuccccuuuuu
     12get this line
     13@# this line 1)-{}%
     14"abc"
     15'abc  '
     16{ d d
     17
     18d }
     19X               ZC44%Y
    1220abc
    1321cccccb
     
    1725aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww
    1826uuuuuccccuuuuu
     27get this line
     28@# this line 1)-{}%
     29"abc"
     30'abc  '
     31{ d d
     32
     33d }
     34X               ZC44%Y
    1935ab
    20360xff 017 15-15
  • tests/io/manipulatorsInput.cfa

    re7eb1f0 rca2feff  
    77// Created On       : Sat Jun  8 17:58:54 2019
    88// Last Modified By : Peter A. Buhr
    9 // Last Modified On : Sat Sep  2 14:27:46 2023
    10 // Update Count     : 65
     9// Last Modified On : Wed Jan  3 11:15:04 2024
     10// Update Count     : 103
    1111//
    1212
     
    7777                s[0] = 'q'; s[1] = '\0'; rc = 99;
    7878                rc = scanf( "%[^u]", s );                                               printf( "15 rc=%d, %s\n", rc, s );
    79                 scanf( "%*[u]" );
    80                 scanf("\n");
     79                scanf( "%*[u]\n" );
     80                scanf( "%[^\n]\n", s );                                                 printf( "16 %s\n", s );
     81                scanf( "%[^%%]%%\n", s );                                               printf( "17 %s\n", s );
     82
     83                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace
     84                scanf( "\"%[^\"]\"", s );                                               printf( "18 %s\n", s );
     85                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace
     86                scanf( "'%[^']'", s );                                                  printf( "19 %s\n", s );
     87                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace
     88                scanf( "{%[^}]}", s );                                                  printf( "20 %s\n", s );
     89                scanf( "%*[ \f\n\r\t\v]" );                                             // ignore whitespace
     90                scanf( "X%[^Y]Y", s );                                                  printf( "21 %s\n", s );
     91                scanf( "\n" );                                                                  // must start next line
    8192        }
    8293        {
     
    102113                s[0] = 'q'; s[1] = '\0';
    103114                sin | excl( "u", wdi( sizeof(s), s ) );                 sout | "15" | s;
    104                 sin | skip( "u" );
    105                 sin | "\n";
    106         }
    107     /* Keep harmonized with collections/string-istream-manip */
     115                sin | skip( "u" ) | "\n";
     116                sin | getline( wdi( sizeof(s), s ) );                   sout | "16" | s;
     117                sin | getline( wdi( sizeof(s), s ), '%' ) | "\n"; sout | "17" | s;
     118
     119                sin | quoted( wdi( sizeof(s), s ) );                    sout | "18" | s;
     120                sin | quoted( wdi( sizeof(s), s ), '\'' );              sout | "19" | s;
     121                sin | quoted( wdi( sizeof(s), s ), '{', '}' );  sout | "20" | s;
     122                sin | quoted( wdi( sizeof(s), s ), 'X', 'Y' );  sout | "21" | s;
     123        }
     124    // Keep harmonized with collections/string-istream-manip
    108125        {
    109126                char c;
Note: See TracChangeset for help on using the changeset viewer.