Changeset 7abc3de for tests/collections


Ignore:
Timestamp:
Jan 17, 2024, 6:31:03 PM (11 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
906d8fa
Parents:
11f65b3
Message:

Harmonize string constructors with assignments, refactor implementations to include string_res, add missing tests

Location:
tests/collections
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/collections/.expect/string-api-coverage.txt

    r11f65b3 r7abc3de  
    1414true false
    1515true false
     161234567
    1617123
    1718hello
     19hell
    1820hello
    1921world
    2022hello
    2123world
     24Q
    22251234567
    2326hello
  • tests/collections/string-api-coverage.cfa

    r11f65b3 r7abc3de  
    6666    //
    6767    {
    68         string b1 = { "1234567", 3 };
    69         sout | b1; // 123
     68        string b1 = "1234567";
     69        sout | b1; // 1234567
     70
     71        string b1x = { "1234567", 3 };
     72        sout | b1x; // 123
    7073
    7174        string b2 = s;
    7275        sout | b2; // hello
     76
     77        string b2x = { s, 4 };
     78        sout | b2x; // hell
    7379
    7480        // todo: a plain string &
     
    8894        b4 = s_constref;
    8995        sout | b4;  // world
     96
     97        string b5 = 'Q';
     98        sout | b5; // Q
     99
     100
    90101    }
    91102                                            assertWellFormedHandleList( 10 );
Note: See TracChangeset for help on using the changeset viewer.