Skip to content

Commit

Permalink
Update delegate0_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
oktonion committed Sep 15, 2024
1 parent 3e45ed2 commit 8824fbc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/delegate0_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ TEST_CASE("Testing cpp delegate 0") {

d0_other = delegate<void>(&t, &Test::call);

REQURE(&Test::call != &Test::call2);
REQURE(sizeof(&Test::call2) == sizeof(&Test::call));
REQURE(std::memcmp(&Test::call, &Test::call2, sizeof(&Test::call2)) != 0);
void(Test::*Test_call)() = &Test::call;
void(Test::*Test_call2)() = &Test::call2;
REQURE_FALSE(Test_call == Test_call2);
REQURE(sizeof(Test_call2) == sizeof(Test_call));
REQURE(std::memcmp(&Test_call, &Test_call2, sizeof(Test_call2)) != 0);

CHECK_FALSE(d0_other == d0);
CHECK_FALSE(d0 == d0_other);
Expand Down

0 comments on commit 8824fbc

Please sign in to comment.