aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/lexer.cpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 19:23:10 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 19:23:10 +0200
commit880e8c45c5621ed8432b74a0cf4f212b9c14aade (patch)
treeaa13bb1cc8d64db07b51c859b3277f1cdc855876 /test/unit_tests/lexer.cpp
parentget rid of functionality removed in newer Boost (diff)
downloadmath-server-880e8c45c5621ed8432b74a0cf4f212b9c14aade.tar.gz
math-server-880e8c45c5621ed8432b74a0cf4f212b9c14aade.zip
finally, perfect .clang-format settings?
Diffstat (limited to '')
-rw-r--r--test/unit_tests/lexer.cpp26
1 files changed, 16 insertions, 10 deletions
diff --git a/test/unit_tests/lexer.cpp b/test/unit_tests/lexer.cpp
index bfb752a..3a38416 100644
--- a/test/unit_tests/lexer.cpp
+++ b/test/unit_tests/lexer.cpp
@@ -149,26 +149,32 @@ BOOST_AUTO_TEST_CASE(test_parse_const_token) {
BOOST_TEST(!details::parse_const_token("&+").has_value());
}
-BOOST_DATA_TEST_CASE(test_get_tokens_valid,
- bdata::make(get_tokens::valid::input) ^ get_tokens::valid::expected,
- input,
- expected) {
+BOOST_DATA_TEST_CASE(
+ test_get_tokens_valid,
+ bdata::make(get_tokens::valid::input) ^ get_tokens::valid::expected,
+ input,
+ expected
+) {
Lexer lexer{input};
const auto actual = lexer.get_tokens();
BOOST_CHECK_EQUAL_COLLECTIONS(
- actual.cbegin(), actual.cend(), expected.cbegin(), expected.cend());
+ actual.cbegin(), actual.cend(), expected.cbegin(), expected.cend()
+ );
}
-BOOST_DATA_TEST_CASE(test_get_tokens_invalid,
- bdata::make(get_tokens::invalid::input) ^ get_tokens::invalid::error_msg,
- input,
- error_msg) {
+BOOST_DATA_TEST_CASE(
+ test_get_tokens_invalid,
+ bdata::make(get_tokens::invalid::input) ^ get_tokens::invalid::error_msg,
+ input,
+ error_msg
+) {
BOOST_REQUIRE_THROW(
do {
Lexer lexer{input};
lexer.get_tokens();
} while (0),
- LexerError);
+ LexerError
+ );
try {
Lexer lexer{input};