diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-11-19 19:56:20 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-11-19 19:56:20 +0300 |
commit | 9a6dedb849edebb0fdb9332fdae4a9033e2238dc (patch) | |
tree | f92e029a208412cb4f1da8342d6803a12bd1a684 /cli | |
parent | cd3758bb328ff425bb06f18c81d3c353b508a336 (diff) |
Fortify tests against NDEBUG
Diffstat (limited to 'cli')
-rw-r--r-- | cli/cli/lexer.test.cxx | 3 | ||||
-rw-r--r-- | cli/cli/parser.test.cxx | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/cli/lexer.test.cxx b/cli/cli/lexer.test.cxx index 0eb4dcb..a5cc2f3 100644 --- a/cli/cli/lexer.test.cxx +++ b/cli/cli/lexer.test.cxx @@ -8,6 +8,9 @@ #include <cli/token.hxx> #include <cli/lexer.hxx> +#undef NDEBUG +#include <cassert> + using namespace std; const char* keywords[] = diff --git a/cli/cli/parser.test.cxx b/cli/cli/parser.test.cxx index 6ef0d11..5a87bb7 100644 --- a/cli/cli/parser.test.cxx +++ b/cli/cli/parser.test.cxx @@ -9,6 +9,9 @@ #include <cli/semantics.hxx> #include <cli/traversal.hxx> +#undef NDEBUG +#include <cassert> + using namespace std; int |