mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
Rename unique_callback to promise
This commit is contained in:
parent
29c61b6b96
commit
3d0ce45ae4
@ -44,7 +44,7 @@ TYPED_TEST(single_dimension_tests, is_eraseable) {
|
|||||||
TYPED_TEST(single_dimension_tests, is_callable) {
|
TYPED_TEST(single_dimension_tests, is_callable) {
|
||||||
|
|
||||||
cti::unique_continuable<int, int> erased =
|
cti::unique_continuable<int, int> erased =
|
||||||
[](cti::unique_callback<int, int>&& callback) {
|
[](cti::promise<int, int>&& callback) {
|
||||||
|
|
||||||
std::move(callback)(0xDF, 0xDD);
|
std::move(callback)(0xDF, 0xDD);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -196,7 +196,6 @@ struct provide_continuation_seq_right {
|
|||||||
using single_types = ::testing::Types<
|
using single_types = ::testing::Types<
|
||||||
#if UNIT_TEST_STEP == 0
|
#if UNIT_TEST_STEP == 0
|
||||||
provide_copyable
|
provide_copyable
|
||||||
// provide_unique,
|
|
||||||
// provide_erasure<cti::continuable>,
|
// provide_erasure<cti::continuable>,
|
||||||
// provide_erasure<cti::unique_continuable>
|
// provide_erasure<cti::unique_continuable>
|
||||||
#elif UNIT_TEST_STEP == 1
|
#elif UNIT_TEST_STEP == 1
|
||||||
@ -211,9 +210,7 @@ using single_types = ::testing::Types<
|
|||||||
#elif UNIT_TEST_STEP == 2
|
#elif UNIT_TEST_STEP == 2
|
||||||
provide_continuation_and_left<provide_erasure<cti::unique_continuable>>
|
provide_continuation_and_left<provide_erasure<cti::unique_continuable>>
|
||||||
#elif UNIT_TEST_STEP == 3
|
#elif UNIT_TEST_STEP == 3
|
||||||
#define NO_ERASURE_TESTS
|
provide_unique
|
||||||
#define NO_FUTURE_TESTS
|
|
||||||
provide_erasure<std_continuable>
|
|
||||||
#elif UNIT_TEST_STEP == 4
|
#elif UNIT_TEST_STEP == 4
|
||||||
//#define NO_ERASURE_TESTS
|
//#define NO_ERASURE_TESTS
|
||||||
//#define NO_FUTURE_TESTS
|
//#define NO_FUTURE_TESTS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user