2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-13 00:12:17 +00:00
Files
fiber/test
Nat Goodspeed 3e95946350 Add tests for bounded_channel::lower_bound().
We intend to document that bounded_channel(hwm) is equivalent to
bounded_channel(hwm, (hwm-1)). That may or may not simplify the code, but it
certainly simplifies the reader's mental model of the relationship between the
two constructors.

However, that assertion requires that for bounded_channel(hwm), lower_bound()
in fact return (hwm-1). Test for that.

Also use BOOST_CHECK_EQUAL(a, b) instead of BOOST_CHECK(a == b) where
applicable, since the former is more informative when the test fails.

Sadly, tests on channel_op_status must still use BOOST_CHECK(a == b) --
apparently because channel_op_status, as an enum class, cannot be streamed to
std::ostream?
2015-08-15 10:48:58 -04:00
..
2015-01-01 14:40:39 +01:00
2015-06-20 21:31:34 +02:00
2015-01-01 14:40:39 +01:00
2015-06-24 18:23:11 +02:00
2014-12-27 19:07:42 +01:00
2014-12-27 19:07:42 +01:00
2015-06-20 21:31:34 +02:00
2015-01-01 14:40:39 +01:00
2014-12-27 19:07:42 +01:00