Changeset 1ad112a5 for tests


Ignore:
Timestamp:
Jul 24, 2024, 6:59:12 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
878b1385
Parents:
6f47834
Message:

update enumeration input test

Location:
tests/enum_tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/enum_tests/.expect/input.txt

    r6f47834 r1ad112a5  
    1 "BBB"
    2 "AB"
    3 "AAA"
    4 "AB"
    5 "BBB"
    6 "AAA"
    7 "AB"
    8 "AA"
    9 "B"
    10 "BBB"
    11 "AAA"
    12 "AA"
    13 "AB"
    14 "B"
    15 "BBB"
    16 "AAA"
    17 "AA"
    18 "AB"
    19 "B"
    20 "AAA"
    21 "B"
    22 "CB"
    23 "AC"
    24 "CB"
    25 "AC"
    26 "BBB"
    27 "AAA"
    28 "AA"
     1BBB = 3
     2AB = 6
     3AAA = 4
     4AB = 6
     5BBB = 3
     6AAA = 4
     7AB = 6
     8AA = 5
     9B = 7
     10BBB = 3
     11AAA = 4
     12AA = 5
     13AB = 6
     14B = 7
     15BBB = 3
     16AAA = 4
     17AA = 5
     18AB = 6
     19B = 7
     20AAA = 4
     21B = 7
     22CB = 8
     23AC = 9
     24CB = 8
     25AC = 9
     26BBB = 3
     27AAA = 4
     28AA = 5
    2929missing data
    30 "AAA"
    31 "B"
    32 "CB"
    33 "AC"
    34 "CB"
    35 "AC"
    36 "BBB"
    37 "AAA"
    38 "AA"
     30AAA = 4
     31B = 7
     32CB = 8
     33AC = 9
     34CB = 8
     35AC = 9
     36BBB = 3
     37AAA = 4
     38AA = 5
    3939missing data
  • tests/enum_tests/input.cfa

    r6f47834 r1ad112a5  
    33
    44int main() {
    5         enum(int) E { BBB, AAA, AA, AB, B, CB, AC };
     5        enum(int ) E { BBB = 3, AAA, AA, AB, B, CB, AC };
    66        E e;
    77
     
    1414                } // try
    1515          if ( eof( sin ) ) break;
    16                 sout | "\"" | e | "\"";
     16                sout | e | "= " | value( e );
    1717        } // for
    1818}
Note: See TracChangeset for help on using the changeset viewer.