This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch reproducible-widget-previews
in repository efl.

View the commit online.

commit 5ad33ad746ded85ea160581a87b1c5f38d2825b4
Author: Swagtoy <[email protected]>
AuthorDate: Wed Apr 22 11:06:39 2026 -0400

    tests: Fix more std::bind1st and std::not1 tests
    
    Forgot some, so let's adapt...
    
    Signed-off-by: Swagtoy <[email protected]>
---
 src/tests/eina_cxx/eina_cxx_test_inarray.cc | 13 +++++++++----
 src/tests/eina_cxx/eina_cxx_test_ptrlist.cc |  4 ++--
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/tests/eina_cxx/eina_cxx_test_inarray.cc b/src/tests/eina_cxx/eina_cxx_test_inarray.cc
index 903325b5c7..804187e88c 100644
--- a/src/tests/eina_cxx/eina_cxx_test_inarray.cc
+++ b/src/tests/eina_cxx/eina_cxx_test_inarray.cc
@@ -129,8 +129,8 @@ EFL_START_TEST(eina_cxx_inarray_pod_constructors)
 
   efl::eina::inarray<int> array2(10, 5);
   ck_assert(array2.size() == 10);
-  ck_assert(std::find_if(array2.begin(), array2.end()
-                      , std::not1(std::bind1st(std::equal_to<int>(), 5))) == array2.end());
+  ck_assert(std::find_if(array2.begin(), array2.end(),
+                         [] (int n) { return n != 5; }) == array2.end());
 
   efl::eina::inarray<int> array3(array2);
   ck_assert(array2 == array3);
@@ -217,6 +217,11 @@ bool operator==(non_pod lhs, non_pod rhs)
   return *lhs.x == *rhs.x;
 }
 
+bool operator!=(non_pod lhs, non_pod rhs)
+{
+  return !(lhs == rhs);
+}
+
 EFL_START_TEST(eina_cxx_inarray_nonpod_push_back)
 {
   efl::eina::eina_init eina_init;
@@ -338,8 +343,8 @@ EFL_START_TEST(eina_cxx_inarray_nonpod_constructors)
 
     efl::eina::inarray<non_pod> array2(10, 5);
     ck_assert(array2.size() == 10);
-    ck_assert(std::find_if(array2.begin(), array2.end()
-                        , std::not1(std::bind1st(std::equal_to<non_pod>(), 5))) == array2.end());
+    ck_assert(std::find_if(array2.begin(), array2.end(),
+	                       [] (non_pod n) { return n != 5; }) == array2.end());
 
     efl::eina::inarray<non_pod> array3(array2);
     ck_assert(array2 == array3);
diff --git a/src/tests/eina_cxx/eina_cxx_test_ptrlist.cc b/src/tests/eina_cxx/eina_cxx_test_ptrlist.cc
index 5cb01c412c..5add70b5f9 100644
--- a/src/tests/eina_cxx/eina_cxx_test_ptrlist.cc
+++ b/src/tests/eina_cxx/eina_cxx_test_ptrlist.cc
@@ -377,8 +377,8 @@ EFL_START_TEST(eina_cxx_ptrlist_constructors)
 
     efl::eina::ptr_list<int, efl::eina::heap_copy_allocator> list2(10, 5);
     ck_assert(list2.size() == 10);
-    ck_assert(std::find_if(list2.begin(), list2.end()
-                           , std::not1(std::bind1st(std::equal_to<int>(), 5))) == list2.end());
+    ck_assert(std::find_if(list2.begin(), list2.end(),
+	                       [] (int n) { return n != 5; }) == list2.end());
 
     efl::eina::ptr_list<int, efl::eina::heap_copy_allocator> list3(list2);
     ck_assert(list2 == list3);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to