Changeset 92d8cda for tests/collections


Ignore:
Timestamp:
Sep 6, 2023, 11:49:02 AM (2 years ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
4a40fca7, 79b05224, 9d47c1f
Parents:
1f10959 (diff), 1fc111c (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests/collections
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tests/collections/.expect/string-istream-manip.txt

    r1f10959 r92d8cda  
    121212 wwwwwwww
    131313 wwwwwwww
     141 yyyyyyyyyyyyyyyyyyyy
     152 abcxxx
     163 abcxxx
     174 aaaaaaaa
     185 aaaaaaaa
     196 aabbccbb
     207 dddwww
     218 dddwww
     229 dddwww
     2310 aaaaaaaa
     2411 wwwwwwww
     2512 wwwwwwww
     2613 wwwwwwww
  • tests/collections/.in/string-istream-manip.txt

    r1f10959 r92d8cda  
    55abcyyy
    66aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww
     7abc
     8abc
     9xx
     10abcxxx
     11abcyyy
     12aaaaaaaaxxxxxxxxaabbccbbdddwwwbbbbbbbbwwwwwwwwaaaaaaaawwwwwwww
  • tests/collections/string-istream-manip.cfa

    r1f10959 r92d8cda  
    22#include <fstream.hfa>
    33#include <collections/string.hfa>
     4#include <collections/string_res.hfa>
    45
    56int main() {
     
    1112        sin | s;                                        sout | "2" | s;
    1213        sin | ignore( s );                              sout | "3" | s;
    13          sin | wdi( 8, s );                             sout | "4" | s;
     14        sin | wdi( 8, s );                              sout | "4" | s;
     15        sin | ignore( wdi( 8, s ) );                    sout | "5" | s;
     16
     17        sin | incl( "abc", s );                         sout | "6" | s;
     18        sin | excl( "abc", s );                         sout | "7" | s;
     19        sin | ignore( incl( "abc", s ) );               sout | "8" | s;
     20        sin | ignore( excl( "abc", s ) );               sout | "9" | s;
     21        sin | incl( "abc", wdi( 8, s ) );               sout | "10" | s;
     22        sin | excl( "abc", wdi( 8, s ) );               sout | "11" | s;
     23        sin | ignore( incl( "abc", wdi( 8, s ) ) );     sout | "12" | s;
     24        sin | ignore( excl( "abc", wdi( 8, s ) ) );     sout | "13" | s;
     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;
    1433        sin | ignore( wdi( 8, s ) );                    sout | "5" | s;
    1534
Note: See TracChangeset for help on using the changeset viewer.