Changeset ff56dd2e for tests/collections
- Timestamp:
- Sep 5, 2023, 4:08:32 PM (16 months ago)
- Branches:
- master
- Children:
- 737988b
- Parents:
- 3c7e3c4
- Location:
- tests/collections
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/collections/.expect/string-istream-manip.txt
r3c7e3c4 rff56dd2e 12 12 12 wwwwwwww 13 13 13 wwwwwwww 14 1 yyyyyyyyyyyyyyyyyyyy 15 2 abcxxx 16 3 abcxxx 17 4 aaaaaaaa 18 5 aaaaaaaa 19 6 aabbccbb 20 7 dddwww 21 8 dddwww 22 9 dddwww 23 10 aaaaaaaa 24 11 wwwwwwww 25 12 wwwwwwww 26 13 wwwwwwww -
tests/collections/.in/string-istream-manip.txt
r3c7e3c4 rff56dd2e 5 5 abcyyy 6 6 aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww 7 abc 8 abc 9 xx 10 abcxxx 11 abcyyy 12 aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww -
tests/collections/string-istream-manip.cfa
r3c7e3c4 rff56dd2e 2 2 #include <fstream.hfa> 3 3 #include <collections/string.hfa> 4 #include <collections/string_res.hfa> 4 5 5 6 int main() { … … 23 24 sin | ignore( excl( "abc", wdi( 8, s ) ) ); sout | "13" | s; 24 25 } 26 { 27 string_res s = "yyyyyyyyyyyyyyyyyyyy"; 28 char sk[] = "abc"; 29 sin | "abc " | skip( sk ) | skip( 5 ); sout | "1" | s; 30 sin | s; sout | "2" | s; 31 sin | ignore( s ); sout | "3" | s; 32 sin | wdi( 8, s ); sout | "4" | s; 33 sin | ignore( wdi( 8, s ) ); sout | "5" | s; 34 35 sin | incl( "abc", s ); sout | "6" | s; 36 sin | excl( "abc", s ); sout | "7" | s; 37 sin | ignore( incl( "abc", s ) ); sout | "8" | s; 38 sin | ignore( excl( "abc", s ) ); sout | "9" | s; 39 sin | incl( "abc", wdi( 8, s ) ); sout | "10" | s; 40 sin | excl( "abc", wdi( 8, s ) ); sout | "11" | s; 41 sin | ignore( incl( "abc", wdi( 8, s ) ) ); sout | "12" | s; 42 sin | ignore( excl( "abc", wdi( 8, s ) ) ); sout | "13" | s; 43 } 25 44 }
Note: See TracChangeset
for help on using the changeset viewer.