Changeset 11e2adf in mainline


Ignore:
Timestamp:
2018-07-05T21:41:17Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b946b052
Parents:
b9f897c
git-author:
Jaroslav Jindrak <dzejrou@…> (2017-10-25 17:01:13)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:17)
Message:

cpp: added array swap tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/src/internal/test/array.cpp

    rb9f897c r11e2adf  
    8585        );
    8686
     87        arr2.swap(arr3);
     88        test_eq(
     89            "swap part 1",
     90            arr2.begin(), arr2.end(),
     91            check3.begin(), check3.end()
     92        );
     93        test_eq(
     94            "swap part 2",
     95            arr3.begin(), arr3.end(),
     96            check2.begin(), check2.end()
     97        );
     98
     99        // TODO: test bound checking of at when implemented
     100
    87101        return true;
    88102    }
Note: See TracChangeset for help on using the changeset viewer.