Skip to content

Commit

Permalink
Removed unnecessary test lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nwad123 committed Nov 4, 2024
1 parent 0fd8528 commit f14079a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions test/test_find_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ static_assert(std::invocable<find_if_fn, int[10], const_int_comp>);
using const_int_ref_comp = auto(const int& x) -> bool;
static_assert(std::invocable<find_if_fn, int[10], const_int_ref_comp>);

// Potential modification during find not allowed
using int_ref_comp = auto(int& x) -> bool;
// static_assert(not std::invocable<find_if_fn, int[10], int_ref_comp>);

// Incompatible predicate type
using S_comp = auto(S x) -> bool;
static_assert(not std::invocable<find_if_fn, int[10], S_comp>);
Expand Down
4 changes: 0 additions & 4 deletions test/test_find_if_not.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ static_assert(std::invocable<find_if_not_fn, int[10], const_int_comp>);
using const_int_ref_comp = auto(const int& x) -> bool;
static_assert(std::invocable<find_if_not_fn, int[10], const_int_ref_comp>);

// Potential modification during find not allowed
using int_ref_comp = auto(int& x) -> bool;
// static_assert(not std::invocable<find_if_fn, int[10], int_ref_comp>);

// Incompatible predicate type
using S_comp = auto(S x) -> bool;
static_assert(not std::invocable<find_if_not_fn, int[10], S_comp>);
Expand Down

0 comments on commit f14079a

Please sign in to comment.