-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#290) Перенес методы из AlgExpression в Regex,
добавил класс для юнит тестов
- Loading branch information
Showing
8 changed files
with
111 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
Check notice on line 1 in apps/UnitTestsApp/include/UnitTestsApp/UnitTests.h GitHub Actions / cpp-linterRun clang-format on apps/UnitTestsApp/include/UnitTestsApp/UnitTests.h
|
||
|
||
#include "AutomatonToImage/AutomatonToImage.h" | ||
#include "InputGenerator/RegexGenerator.h" | ||
#include "Interpreter/Interpreter.h" | ||
#include "Objects/AlgExpression.h" | ||
#include "Objects/FiniteAutomaton.h" | ||
#include "Objects/Grammar.h" | ||
#include "Objects/Language.h" | ||
#include "Objects/Regex.h" | ||
#include "Objects/TransformationMonoid.h" | ||
#include "Tester/Tester.h" | ||
#include "gtest/gtest.h" | ||
#include <functional> | ||
|
||
class UnitTests | ||
Check warning on line 16 in apps/UnitTestsApp/include/UnitTestsApp/UnitTests.h GitHub Actions / cpp-linter/apps/UnitTestsApp/include/UnitTestsApp/UnitTests.h:16:7 [cppcoreguidelines-avoid-non-const-global-variables]
|
||
{ | ||
public: | ||
UnitTests(){}; | ||
|
||
static int InitTests(int argc, char** argv) { | ||
::testing::InitGoogleTest(&argc, argv); | ||
return RUN_ALL_TESTS(); | ||
}; | ||
|
||
using Lexeme = AlgExpression::Lexeme; | ||
using LexemeType = AlgExpression::Lexeme::Type; | ||
static std::vector<Lexeme> parse_string(std::string str) {return AlgExpression::parse_string(str);}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters