Skip to content

Commit e1a996e

Browse files
committed
nicer test format
1 parent a49bce3 commit e1a996e

File tree

1 file changed

+5
-5
lines changed
  • tests/std/tests/GH_005816_numeric_limits_traps

1 file changed

+5
-5
lines changed

tests/std/tests/GH_005816_numeric_limits_traps/test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#ifdef __clang__
99
#pragma clang diagnostic ignored "-Wc++17-extensions" // constexpr if is a C++17 extension
10-
#else
10+
#else // ^^^ defined(__clang__) / !defined(__clang__) vvv
1111
#pragma warning(disable : 4984) // warning C4984: 'if constexpr' is a C++17 language extension
12-
#endif // __clang__
12+
#endif // ^^^ !defined(__clang__) ^^^
1313

1414
template <class T>
1515
constexpr bool traps_ = std::numeric_limits<T>::traps;
@@ -21,9 +21,9 @@ static_assert(!traps_<float> && !traps_<double> && !traps_<long double>,
2121

2222
static_assert(traps_<char> == traps_<int> && traps_<signed char> == traps_<int> && traps_<unsigned char> == traps_<int>
2323
&& traps_<short> == traps_<int> && traps_<unsigned short> == traps_<int>
24-
&& traps_<unsigned int> == traps_<int> && traps_<long> == traps_<int>
25-
&& traps_<unsigned long> == traps_<int> && traps_<long long> == traps_<int>
26-
&& traps_<unsigned long long> == traps_<int>,
24+
&& traps_<unsigned int> == traps_<int> //
25+
&& traps_<long> == traps_<int> && traps_<unsigned long> == traps_<int>
26+
&& traps_<long long> == traps_<int> && traps_<unsigned long long> == traps_<int>,
2727
"all integers should trap or not trap equally");
2828

2929
void trap_operation() {

0 commit comments

Comments
 (0)