From 26326167cc95227138d7a07367c546f2bfc8d92d Mon Sep 17 00:00:00 2001 From: SharafMohamed Date: Sun, 8 Dec 2024 07:48:17 -0500 Subject: [PATCH] Add missing alogrithm header; Update test-NFA. --- .../finite_automata/TaggedTransition.hpp | 1 + tests/test-NFA.cpp | 18 +++++++++--------- tests/test-lexer.cpp | 12 ++++++------ 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/log_surgeon/finite_automata/TaggedTransition.hpp b/src/log_surgeon/finite_automata/TaggedTransition.hpp index 7c7b492..43315b2 100644 --- a/src/log_surgeon/finite_automata/TaggedTransition.hpp +++ b/src/log_surgeon/finite_automata/TaggedTransition.hpp @@ -1,6 +1,7 @@ #ifndef LOG_SURGEON_FINITE_AUTOMATA_TAGGED_TRANSITION #define LOG_SURGEON_FINITE_AUTOMATA_TAGGED_TRANSITION +#include #include #include #include diff --git a/tests/test-NFA.cpp b/tests/test-NFA.cpp index 834e7fe..160d421 100644 --- a/tests/test-NFA.cpp +++ b/tests/test-NFA.cpp @@ -13,22 +13,22 @@ #include using log_surgeon::cSizeOfByte; -using log_surgeon::finite_automata::NfaByteState; +using log_surgeon::finite_automata::ByteNfaState; using log_surgeon::Schema; using log_surgeon::SchemaVarAST; using std::string; using std::stringstream; using std::vector; -using ByteLexicalRule = log_surgeon::LexicalRule; -using ByteNFA = log_surgeon::finite_automata::Nfa; -using RegexASTCatByte = log_surgeon::finite_automata::RegexASTCat; -using RegexASTCaptureByte = log_surgeon::finite_automata::RegexASTCapture; -using RegexASTGroupByte = log_surgeon::finite_automata::RegexASTGroup; -using RegexASTLiteralByte = log_surgeon::finite_automata::RegexASTLiteral; +using ByteLexicalRule = log_surgeon::LexicalRule; +using ByteNFA = log_surgeon::finite_automata::Nfa; +using RegexASTCatByte = log_surgeon::finite_automata::RegexASTCat; +using RegexASTCaptureByte = log_surgeon::finite_automata::RegexASTCapture; +using RegexASTGroupByte = log_surgeon::finite_automata::RegexASTGroup; +using RegexASTLiteralByte = log_surgeon::finite_automata::RegexASTLiteral; using RegexASTMultiplicationByte - = log_surgeon::finite_automata::RegexASTMultiplication; -using RegexASTOrByte = log_surgeon::finite_automata::RegexASTOr; + = log_surgeon::finite_automata::RegexASTMultiplication; +using RegexASTOrByte = log_surgeon::finite_automata::RegexASTOr; TEST_CASE("Test NFA", "[NFA]") { Schema schema; diff --git a/tests/test-lexer.cpp b/tests/test-lexer.cpp index a3ab69f..48b2185 100644 --- a/tests/test-lexer.cpp +++ b/tests/test-lexer.cpp @@ -19,17 +19,17 @@ using std::vector; using std::wstring_convert; using RegexASTCatByte - = log_surgeon::finite_automata::RegexASTCat; + = log_surgeon::finite_automata::RegexASTCat; using RegexASTCaptureByte - = log_surgeon::finite_automata::RegexASTCapture; + = log_surgeon::finite_automata::RegexASTCapture; using RegexASTGroupByte - = log_surgeon::finite_automata::RegexASTGroup; + = log_surgeon::finite_automata::RegexASTGroup; using RegexASTLiteralByte - = log_surgeon::finite_automata::RegexASTLiteral; + = log_surgeon::finite_automata::RegexASTLiteral; using RegexASTMultiplicationByte = log_surgeon::finite_automata::RegexASTMultiplication< - log_surgeon::finite_automata::NfaByteState>; + log_surgeon::finite_automata::ByteNfaState>; using RegexASTOrByte - = log_surgeon::finite_automata::RegexASTOr; + = log_surgeon::finite_automata::RegexASTOr; using log_surgeon::SchemaVarAST; namespace {