From b116faa02df582d72badc2d906290d40c1a0b979 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 13 Aug 2022 13:29:11 +0200 Subject: [PATCH] :green_heart: fix unit test --- tests/src/unit-bon8.cpp | 3 +++ tests/src/unit-bson.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/unit-bon8.cpp b/tests/src/unit-bon8.cpp index 6953adf0e..bf3e99c9b 100644 --- a/tests/src/unit-bon8.cpp +++ b/tests/src/unit-bon8.cpp @@ -31,6 +31,9 @@ SOFTWARE. #include using nlohmann::json; +#ifdef JSON_TEST_NO_GLOBAL_UDLS +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) +#endif #include #include diff --git a/tests/src/unit-bson.cpp b/tests/src/unit-bson.cpp index fa07e9d9c..a231c8cca 100644 --- a/tests/src/unit-bson.cpp +++ b/tests/src/unit-bson.cpp @@ -10,9 +10,6 @@ #include using nlohmann::json; -#ifdef JSON_TEST_NO_GLOBAL_UDLS -using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) -#endif #include #include