aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/ryml/test/test_suite/test_suite_parts.hpp
blob: 9092313ba4f81b242e5145746acd5b8e93fbaacc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef C4_YML_TEST_SUITE_PARTS_HPP_
#define C4_YML_TEST_SUITE_PARTS_HPP_

#ifdef RYML_SINGLE_HEADER
#include <ryml_all.hpp>
#else
#include <c4/yml/common.hpp>
#include <c4/span.hpp>
#endif
#include <c4/log/log.hpp>

namespace c4 {
namespace yml {

struct AllowedFailure
{
    csubstr test_name;
    csubstr reason;
    operator bool() const { return !test_name.empty(); }
};

AllowedFailure is_failure_expected(csubstr casename);

} // namespace c4
} // namespace yml


#endif /* C4_YML_TEST_SUITE_PARTS_HPP_ */