diff --git a/split-a-circular-linked-list/test.cpp b/split-a-circular-linked-list/test.cpp index db807238..be1099c3 100644 --- a/split-a-circular-linked-list/test.cpp +++ b/split-a-circular-linked-list/test.cpp @@ -13,28 +13,31 @@ using namespace leetcode_test::split_a_circular_linked_list; using namespace std; using std::vector; template -concept sizable = requires(T& t) { +concept sizable = requires(T& t) +{ { t.size() - } -> std::same_as; + } -> std::same_as; }; template -concept iterable = requires(T& t) { +concept iterable = requires(T& t) +{ ++t.begin(); { t.begin() != t.end() - } -> std::same_as; + } -> std::same_as; }; template -concept equalable = requires(T& t, Y& y, size_t i) { +concept equalable = requires(T& t, Y& y, size_t i) +{ { *t.begin() == *y.begin() - } -> std::same_as; + } -> std::same_as; }; template - requires sizable and sizable and equalable and iterable and iterable +requires sizable and sizable and equalable and iterable and iterable auto assertContentEquals(T& left, Y& right) {