| 1 | |
| 2 | // Copyright Catch2 Authors |
| 3 | // Distributed under the Boost Software License, Version 1.0. |
| 4 | // (See accompanying file LICENSE.txt or copy at |
| 5 | // https://www.boost.org/LICENSE_1_0.txt) |
| 6 | |
| 7 | // SPDX-License-Identifier: BSL-1.0 |
| 8 | |
| 9 | /**\file |
| 10 | * Checks that test case methods with identical class, name and tags are |
| 11 | * reported as error. |
| 12 | */ |
| 13 | |
| 14 | #include <catch2/catch_test_macros.hpp> |
| 15 | |
| 16 | class TestCaseFixture { |
| 17 | public: |
| 18 | int m_a; |
| 19 | }; |
| 20 | |
| 21 | TEST_CASE_METHOD(TestCaseFixture, "A test case with duplicated name and tags", "[tag1]") {} |
| 22 | TEST_CASE_METHOD(TestCaseFixture, "A test case with duplicated name and tags", "[tag1]") {} |