Changeset d5047002 in mainline for uspace/lib/cpp/include


Ignore:
Timestamp:
2018-07-05T21:41:24Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
28cb7843
Parents:
4960254
git-author:
Dzejrou <dzejrou@…> (2018-05-17 18:57:52)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
Message:

cpp: added test() for easier boolean tests and changed static tests in memory to dynamic tests so that they appear in the test report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/test/test.hpp

    r4960254 rd5047002  
    5757            bool ok_{true};
    5858            bool report_{true};
     59
     60            void test(const char* tname, bool expr)
     61            {
     62                test_eq(tname, expr, true);
     63            }
    5964
    6065            template<class... Args>
Note: See TracChangeset for help on using the changeset viewer.