Move dfa's to tables.h
This commit is contained in:
@@ -309,7 +309,7 @@ TEST_CASE("bench5") {
|
||||
}
|
||||
|
||||
TEST_CASE("num dfa") {
|
||||
parser3::NumDfa dfa;
|
||||
NumDfa dfa;
|
||||
std::string match =
|
||||
"111111111111111111111111111111111111111111111111111111111111111111111111"
|
||||
"111111111111111111111111111111111111111111111111111111111111111111111111"
|
||||
@@ -339,7 +339,7 @@ const char *utf8str =
|
||||
"💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩";
|
||||
|
||||
TEST_CASE("utf8 dfa") {
|
||||
parser3::Utf8Dfa dfa;
|
||||
Utf8Dfa dfa;
|
||||
std::string match = utf8str;
|
||||
auto *buf = dfa.scan(match.data(), match.data() + match.size());
|
||||
CHECK(buf == match.data() + match.size());
|
||||
|
||||
Reference in New Issue
Block a user