Skip to content

Commit

Permalink
Merge pull request #112 from masx200/deno-dependency-updates
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
masx200 authored May 13, 2023
2 parents aa76c22 + 00a3e77 commit 02cae81
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions split-a-circular-linked-list/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,31 @@ using namespace leetcode_test::split_a_circular_linked_list;
using namespace std;
using std::vector;
template <class T>
concept sizable = requires(T& t) {
concept sizable = requires(T& t)
{
{
t.size()
} -> std::same_as<size_t>;
} -> std::same_as<size_t>;
};
template <class T>
concept iterable = requires(T& t) {
concept iterable = requires(T& t)
{
++t.begin();
{
t.begin() != t.end()

} -> std::same_as<bool>;
} -> std::same_as<bool>;
};

template <class T, typename Y>
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<bool>;
} -> std::same_as<bool>;
};
template <typename T, typename Y>
requires sizable<T> and sizable<Y> and equalable<T, Y> and iterable<T> and iterable<Y>
requires sizable<T> and sizable<Y> and equalable<T, Y> and iterable<T> and iterable<Y>
auto assertContentEquals(T& left, Y& right)
{

Expand Down

0 comments on commit 02cae81

Please sign in to comment.