- Timestamp:
- Jul 24, 2024, 6:59:12 PM (4 months ago)
- Branches:
- master
- Children:
- 878b1385
- Parents:
- 6f47834
- 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" 1 BBB = 3 2 AB = 6 3 AAA = 4 4 AB = 6 5 BBB = 3 6 AAA = 4 7 AB = 6 8 AA = 5 9 B = 7 10 BBB = 3 11 AAA = 4 12 AA = 5 13 AB = 6 14 B = 7 15 BBB = 3 16 AAA = 4 17 AA = 5 18 AB = 6 19 B = 7 20 AAA = 4 21 B = 7 22 CB = 8 23 AC = 9 24 CB = 8 25 AC = 9 26 BBB = 3 27 AAA = 4 28 AA = 5 29 29 missing data 30 "AAA" 31 "B" 32 "CB" 33 "AC" 34 "CB" 35 "AC" 36 "BBB" 37 "AAA" 38 "AA" 30 AAA = 4 31 B = 7 32 CB = 8 33 AC = 9 34 CB = 8 35 AC = 9 36 BBB = 3 37 AAA = 4 38 AA = 5 39 39 missing data -
tests/enum_tests/input.cfa
r6f47834 r1ad112a5 3 3 4 4 int main() { 5 enum(int ) E { BBB, AAA, AA, AB, B, CB, AC };5 enum(int ) E { BBB = 3, AAA, AA, AB, B, CB, AC }; 6 6 E e; 7 7 … … 14 14 } // try 15 15 if ( eof( sin ) ) break; 16 sout | "\"" | e | "\"";16 sout | e | "= " | value( e ); 17 17 } // for 18 18 }
Note: See TracChangeset
for help on using the changeset viewer.