Skip to content

Commit

Permalink
Remove std::regex from UtilTests due to gcc compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Oipo committed Nov 5, 2024
1 parent d7fc27e commit 169c3e9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/UtilTests.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "Common.h"
#include <ichor/Common.h>
#include <ctre/ctre.hpp>
#include <regex>

namespace Ichor {
struct SomeStruct {
Expand Down Expand Up @@ -34,17 +33,6 @@ TEST_CASE("Util Tests") {
});
}

SECTION("std regex tests") {
std::string_view input = "/some/http/10/11/12/test";
std::regex _r{"\\/some\\/http\\/(\\d{1,2})\\/(\\d{1,2})\\/(\\d{1,2})\\/test", std::regex::ECMAScript | std::regex::optimize};
std::match_results<typename decltype(input)::const_iterator> matches;
auto result = std::regex_match(input.cbegin(), input.cend(), matches, _r);
REQUIRE(result);
for(auto &match : matches) {
fmt::print("std match {}\n", match.str());
}
}

SECTION("Typename tests") {
fmt::print("{}\n", Ichor::typeName<int>());
fmt::print("{}\n", Ichor::typeName<Ichor::SomeStruct>());
Expand Down

0 comments on commit 169c3e9

Please sign in to comment.