Skip to content

Commit

Permalink
Test equality operators between blocking.possibly, always and never.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskohlhoff committed Nov 7, 2023
1 parent 7477be6 commit 3913eab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions asio/src/tests/unit/execution/blocking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,9 +719,18 @@ void test_prefer()
void test_vars()
{
ASIO_CHECK(s() == exec::blocking);
ASIO_CHECK(s() != exec::blocking.possibly);
ASIO_CHECK(s() != exec::blocking.always);
ASIO_CHECK(s() != exec::blocking.never);
ASIO_CHECK(n1() == exec::blocking.possibly);
ASIO_CHECK(n1() != exec::blocking.always);
ASIO_CHECK(n1() != exec::blocking.never);
ASIO_CHECK(n2() == exec::blocking.always);
ASIO_CHECK(n2() != exec::blocking.possibly);
ASIO_CHECK(n2() != exec::blocking.never);
ASIO_CHECK(n3() == exec::blocking.never);
ASIO_CHECK(n3() != exec::blocking.possibly);
ASIO_CHECK(n3() != exec::blocking.always);
}

ASIO_TEST_SUITE
Expand Down

0 comments on commit 3913eab

Please sign in to comment.