File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11#pragma once
22#include < gtest/gtest.h>
3- #include " type_name.h"
43
54#define DEPAREN (X ) ESC(ISH X)
65#define ISH (...) ISH __VA_ARGS__
76#define ESC (...) ESC_(__VA_ARGS__)
87#define ESC_ (...) VAN##__VA_ARGS__
98#define VANISH
109
11- #define ASSERT_SAME (first, second ) \
12- ASSERT_TRUE ((std::is_same_v<DEPAREN(first), DEPAREN(second)>)) << " Actual: " << nameof<DEPAREN(first)> << '\n' \
13- << "Expected: " << nameof<DEPAREN(second)>
14-
15- #define ASSERT_STATIC (...) ASSERT_SAME(std::bool_constant<(__VA_ARGS__)>, std::true_type)
10+ #define ASSERT_SAME (first, second ) ASSERT_TRUE((std::is_same_v<DEPAREN(first), DEPAREN(second)>))
11+ #define ASSERT_STATIC (...) ASSERT_SAME(std::bool_constant<(__VA_ARGS__)>, std::true_type)
1612
1713#define ASSERT_NOEXCEPT (...) ASSERT_TRUE((noexcept (__VA_ARGS__))) << " Operation must be noexcept"
18- #define ASSERT_NOT_NOEXCEPT (...) ASSERT_FALSE((noexcept (__VA_ARGS__))) << " Operation must not be noexcept"
14+ #define ASSERT_NOT_NOEXCEPT (...) \
15+ ASSERT_FALSE ((noexcept (__VA_ARGS__))) << "Operation must not be noexcept "
1916
2017#define TEST_T (test_suite_name, test_name, ...) \
2118 template <typename > \
You can’t perform that action at this time.
0 commit comments