-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tests): moving the parser tests under tests/unittests using boos…
…t:ut
- Loading branch information
Showing
79 changed files
with
193 additions
and
175 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
* @file Exceptions.hpp | ||
* @author Alexandre Plateau ([email protected]), Max ([email protected]) | ||
* @brief ArkScript homemade exceptions | ||
* @version 1.0 | ||
* @version 1.1 | ||
* @date 2020-10-27 | ||
* | ||
* @copyright Copyright (c) 2020-2021 | ||
* @copyright Copyright (c) 2020-2024 | ||
* | ||
*/ | ||
|
||
|
@@ -20,6 +20,7 @@ | |
#include <optional> | ||
#include <ostream> | ||
#include <iomanip> | ||
#include <iostream> | ||
|
||
#include <Ark/Compiler/AST/utf8_char.hpp> | ||
#include <Ark/Platform.hpp> | ||
|
@@ -144,8 +145,9 @@ namespace Ark | |
* | ||
* @param e code error | ||
* @param code code of the file in which the error occurred | ||
* @param os output stream | ||
*/ | ||
ARK_API void generate(const CodeError& e, std::string code = ""); | ||
ARK_API void generate(const CodeError& e, std::string code = "", std::ostream& os = std::cout); | ||
} | ||
} | ||
|
||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
#include <boost/ut.hpp> | ||
|
||
int main(int argc, const char** argv) | ||
{ | ||
using namespace boost; | ||
using namespace boost::ut::literals; | ||
using namespace boost::ut::operators; | ||
|
||
ut::expect((argc == 2_i) >> ut::fatal) << "Not enough parameters!"; | ||
ut::cfg<ut::override> = { .filter = argv[1] }; | ||
return ut::cfg<ut::override>.run(); | ||
} |
Oops, something went wrong.