Skip to content

Commit

Permalink
[FIX] API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Oct 15, 2023
1 parent 14bb1ca commit 0fe2337
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
31 changes: 31 additions & 0 deletions test/api_stability/3.3.0/0001-FIX-take_until_view_test.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From e89261cd4f2dfdffe982e8c95af1666acf9cfc47 Mon Sep 17 00:00:00 2001
From: Enrico Seiler <[email protected]>
Date: Thu, 28 Sep 2023 21:28:37 +0200
Subject: [PATCH 1/2] [FIX] take_until_view_test

mutable refers to the capture
---
test/unit/io/views/detail/take_until_view_test.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/unit/io/views/detail/take_until_view_test.cpp b/test/unit/io/views/detail/take_until_view_test.cpp
index 970a3a1b1..8f34f7014 100644
--- a/test/unit/io/views/detail/take_until_view_test.cpp
+++ b/test/unit/io/views/detail/take_until_view_test.cpp
@@ -131,10 +131,11 @@ TEST(view_take_until, concepts)
do_concepts(adapt, true);

// mutable adapters make the view lose const-iterability
+ char c2 = 'a';
auto adapt2 = seqan3::detail::take_until(
- [count = 0](char c) mutable
+ [c2](char c) mutable
{
- ++count;
+ c2 = 'b';
return c == '\n';
});
do_concepts(adapt2, false);
--
2.42.0

25 changes: 25 additions & 0 deletions test/api_stability/3.3.0/0002-FIX-Change-constexpr-test.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From e3eaa3f826fbab51db415d0dd6cbf8a93ecad153 Mon Sep 17 00:00:00 2001
From: Enrico Seiler <[email protected]>
Date: Thu, 28 Sep 2023 19:35:57 +0200
Subject: [PATCH 2/2] [FIX] Change constexpr test

gcc11 complains suddenly
---
.../core/range/detail/adaptor_for_view_without_args_test.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/unit/core/range/detail/adaptor_for_view_without_args_test.cpp b/test/unit/core/range/detail/adaptor_for_view_without_args_test.cpp
index 54bcb640c..460fab223 100644
--- a/test/unit/core/range/detail/adaptor_for_view_without_args_test.cpp
+++ b/test/unit/core/range/detail/adaptor_for_view_without_args_test.cpp
@@ -21,6 +21,5 @@ TEST(adaptor_combination, constexpr_combine)
{
constexpr auto adaptor1 = seqan3::detail::adaptor_for_view_without_args<dummy_view>{};
constexpr auto adaptor2 = seqan3::detail::adaptor_for_view_without_args<dummy_view>{};
-
- EXPECT_TRUE((SEQAN3_IS_CONSTEXPR(adaptor1 | adaptor2)));
+ [[maybe_unused]] static constinit auto combined = adaptor1 | adaptor2;
}
--
2.42.0

4 changes: 2 additions & 2 deletions test/api_stability/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ find_package (Git)
include (../seqan3-test.cmake)

include (ExternalProject)
set (SEQAN3_LAST_STABLE_VERSION "3.2.0")
set (SEQAN3_LAST_STABLE_VERSION "3.3.0")
set (SEQAN3_LAST_STABLE_SOURCE_URL
"https://github.com/seqan/seqan3/releases/download/${SEQAN3_LAST_STABLE_VERSION}/seqan3-${SEQAN3_LAST_STABLE_VERSION}-Source.tar.xz"
)
set (SEQAN3_LAST_STABLE_SOURCE_SHA256 "2737a9dc20c1d728674010662c0c9452aabbb3d4a64725bda24f28335468994c")
set (SEQAN3_LAST_STABLE_SOURCE_SHA256 "da2fb621268ebc52b9cc26087e96f4a94109db1f4f28d363d19c7c9cdbd788b1")

set (SEQAN3_API_STABILITY_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSEQAN3_DISABLE_DEPRECATED_WARNINGS=1")

Expand Down

0 comments on commit 0fe2337

Please sign in to comment.