From 8124d300462e3f74c8aa5118df5f7d486852f160 Mon Sep 17 00:00:00 2001 From: Werner Henze Date: Sat, 4 Jan 2025 09:11:54 +0100 Subject: [PATCH] delete tests 2 and 3 --- tests/span_tests.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index ee0dd56f..d77f074a 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -263,13 +263,6 @@ TEST(span_test, from_pointer_pointer_construction) // EXPECT_DEATH(workaround_macro(), expected); //} - // this will fail the std::distance() precondition, which asserts on MSVC debug builds - //{ // this test fails on gcc 13, clang 16, clang 17, xcode 15.4, vs 16 - // int* p = nullptr; - // auto workaround_macro = [&]() { span s{&arr[0], p}; }; - // EXPECT_DEATH(workaround_macro(), expected); - //} - { int* p = nullptr; span s{p, p}; @@ -283,14 +276,6 @@ TEST(span_test, from_pointer_pointer_construction) EXPECT_TRUE(s.size() == 0); EXPECT_TRUE(s.data() == nullptr); } - - // this will fail the std::distance() precondition, which asserts on MSVC debug builds - //{ // this test fails on gcc 13/14, clang 16/17/18, xcode 15.4, vs 16 - // int* p = nullptr; - // auto workaround_macro = [&]() { span s{&arr[0], p}; }; - // span s{&arr[0], p}; - // EXPECT_DEATH(workaround_macro(), expected); - //} } template