Skip to content

Commit

Permalink
Merge pull request #114 from masx200/deno-dependency-updates
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
masx200 authored May 14, 2023
2 parents ba572bf + d891f08 commit 2d1c495
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 @@ -17,28 +17,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 2d1c495

Please sign in to comment.