Ignore:
Timestamp:
2018-07-05T21:41:23Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fceeb93
Parents:
e54bbde5
git-author:
Dzejrou <dzejrou@…> (2018-05-11 18:05:44)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
Message:

cpp: updated & fixed tests, now output is optional (for possible use with pcut)

File:
1 edited

Legend:

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

    re54bbde5 r96ae12b  
    11/*
    2  * Copyright (c) 2017 Jaroslav Jindrak
     2 * Copyright (c) 2018 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    3131
    3232#include <utility>
     33#include <iterator>
    3334
    3435namespace std::test
     
    3738    {
    3839        public:
    39             virtual bool run() = 0;
     40            virtual bool run(bool) = 0;
    4041            virtual const char* name() = 0;
    4142
     
    5455            unsigned int succeeded_{};
    5556            bool ok_{true};
     57            bool report_{true};
    5658
    5759            template<class... Args>
     
    8183                           Iterator2 first2, Iterator2 last2)
    8284            {
    83                 if ((last1 - first1) != (last2 - first2))
     85                if (std::distance(first1, last1) != std::distance(first2, last2))
    8486                    return false;
    8587
Note: See TracChangeset for help on using the changeset viewer.