aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-13 01:58:05 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-13 02:00:39 +0300
commite72941bb23b25aa0d6b7c33e9c9432a0cd08e368 (patch)
treee8f38112f84453b808840e74c37652471d2c132d /test/unit_tests
parentmore clang-format friendly boost::program_options usage (diff)
downloadmath-server-e72941bb23b25aa0d6b7c33e9c9432a0cd08e368.tar.gz
math-server-e72941bb23b25aa0d6b7c33e9c9432a0cd08e368.zip
work around clang-format oddity
Diffstat (limited to 'test/unit_tests')
-rw-r--r--test/unit_tests/lexer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit_tests/lexer.cpp b/test/unit_tests/lexer.cpp
index 8925f4d..c47e9f2 100644
--- a/test/unit_tests/lexer.cpp
+++ b/test/unit_tests/lexer.cpp
@@ -61,6 +61,8 @@ BOOST_AUTO_TEST_CASE(test_parse_const_token) {
namespace {
namespace get_tokens::valid {
+// clang-format off
+// wtf, don't binpack this
const std::vector<std::string_view> input{
"",
" + - ",
@@ -69,6 +71,7 @@ const std::vector<std::string_view> input{
"1+2 * (3- 4e-2)",
" 2 * (1 + 3 * (1 - -3)) ",
};
+// clang-format on
// Some black magic-fuckery to resolve operator<< for std::vector<Token>.
// See https://stackoverflow.com/a/18817428/514684.