2022-01-29 00:07:44 +01:00
|
|
|
|
|
|
|
// Copyright Catch2 Authors
|
|
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
|
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
// https://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
2022-01-29 00:40:03 +01:00
|
|
|
/**\file
|
|
|
|
* Test that stringification of original expression can be disabled.
|
|
|
|
*
|
|
|
|
* This is a workaround for VS 2017, 2019 issue with Raw String literals
|
|
|
|
* and preprocessor token pasting.
|
|
|
|
*/
|
|
|
|
|
2018-08-31 21:27:35 +02:00
|
|
|
|
2020-01-21 15:03:07 +01:00
|
|
|
#include <catch2/catch_test_macros.hpp>
|
2018-08-31 21:27:35 +02:00
|
|
|
|
2020-02-25 12:39:40 +01:00
|
|
|
namespace {
|
|
|
|
struct Hidden {};
|
2018-08-31 21:27:35 +02:00
|
|
|
|
2020-02-25 12:39:40 +01:00
|
|
|
bool operator==(Hidden, Hidden) { return true; }
|
|
|
|
}
|
2018-08-31 21:27:35 +02:00
|
|
|
|
|
|
|
TEST_CASE("DisableStringification") {
|
|
|
|
REQUIRE( Hidden{} == Hidden{} );
|
|
|
|
}
|