Skip to content

Commit c99bceb

Browse files
committed
remove reference to broken typename utility
1 parent 19a85f1 commit c99bceb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/common/assertions.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
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> \

0 commit comments

Comments
 (0)