Fix issues with std::range::views using clang and C++20

This commit is contained in:
stefiosif
2024-08-03 13:54:11 +03:00
parent 3951db7ff9
commit 467edb4019
3 changed files with 14 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
#include "algorithm/tarjan.h"
#include "algorithm/breadth_first_search.h"
#include <memory>
#include <random>
#include <functional>
#include <iostream>
@@ -51,7 +52,7 @@ TEST_SUITE("Algorithm") {
};
for (auto i = 0; i < SCCs.size(); i++) {
auto kv = std::views::keys(SCCs[i].adjList);
auto kv = SCCs[i].vertices();
CHECK_EQ(std::is_permutation(kv.begin(), kv.end(),
expected[i].begin()), true);
}