kokkos-execution 0.0.1
Loading...
Searching...
No Matches
test_completion_signatures.cpp
Go to the documentation of this file.
1#include "gtest/gtest.h"
2
4
15
16namespace Tests {
17
19 constexpr auto empty = stdexec::completion_signatures<>{};
20 constexpr auto sigs1 =
21 stdexec::completion_signatures<stdexec::set_value_t(int), stdexec::set_error_t(std::exception_ptr)>{};
22 constexpr auto sigs2 =
23 stdexec::completion_signatures<stdexec::set_error_t(std::exception_ptr), stdexec::set_value_t(int)>{};
24 constexpr auto sigs3 = stdexec::completion_signatures<
25 stdexec::set_error_t(std::exception_ptr),
26 stdexec::set_value_t(int),
27 stdexec::set_error_t(std::exception_ptr)
28 >{};
29 constexpr auto sigs4 = stdexec::completion_signatures<
30 stdexec::set_error_t(std::exception_ptr),
31 stdexec::set_value_t(int),
32 stdexec::set_stopped_t()
33 >{};
34
35 static_assert(sigs1 != empty);
36 static_assert(sigs1 == sigs2);
37 static_assert(sigs1 == sigs3);
38 static_assert(sigs1 != sigs4);
39
40 return true;
41}
42
49TEST(completion_signatures, operator_equal_checks_for_set_equality) {
51}
52
53} // namespace Tests
consteval bool test_completion_signatures_operator_equal_checks_for_set_equality()