diff --git a/tests/src/unit-class_parser.cpp b/tests/src/unit-class_parser.cpp index bba7b8081..14c23c4ef 100644 --- a/tests/src/unit-class_parser.cpp +++ b/tests/src/unit-class_parser.cpp @@ -11,6 +11,7 @@ #define JSON_TESTS_PRIVATE #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include diff --git a/tests/src/unit-deserialization.cpp b/tests/src/unit-deserialization.cpp index 5a62e9bc6..1c7a73d3a 100644 --- a/tests/src/unit-deserialization.cpp +++ b/tests/src/unit-deserialization.cpp @@ -11,6 +11,7 @@ #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include #include diff --git a/tests/src/unit-element_access2.cpp b/tests/src/unit-element_access2.cpp index d164cf99f..8681bd380 100644 --- a/tests/src/unit-element_access2.cpp +++ b/tests/src/unit-element_access2.cpp @@ -10,6 +10,7 @@ #include "doctest_compatibility.h" #include +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) TEST_CASE_TEMPLATE("element access 2", Json, nlohmann::json, nlohmann::ordered_json) { diff --git a/tests/src/unit-json_patch.cpp b/tests/src/unit-json_patch.cpp index 20a77714b..22c347103 100644 --- a/tests/src/unit-json_patch.cpp +++ b/tests/src/unit-json_patch.cpp @@ -10,6 +10,7 @@ #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include #include "make_test_data_available.hpp" diff --git a/tests/src/unit-json_pointer.cpp b/tests/src/unit-json_pointer.cpp index 977af9f6e..ab0b06121 100644 --- a/tests/src/unit-json_pointer.cpp +++ b/tests/src/unit-json_pointer.cpp @@ -11,6 +11,7 @@ #define JSON_TESTS_PRIVATE #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include diff --git a/tests/src/unit-merge_patch.cpp b/tests/src/unit-merge_patch.cpp index e3b759b9c..1bb8ff139 100644 --- a/tests/src/unit-merge_patch.cpp +++ b/tests/src/unit-merge_patch.cpp @@ -10,6 +10,7 @@ #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) TEST_CASE("JSON Merge Patch") { diff --git a/tests/src/unit-msgpack.cpp b/tests/src/unit-msgpack.cpp index e848dd202..796227a93 100644 --- a/tests/src/unit-msgpack.cpp +++ b/tests/src/unit-msgpack.cpp @@ -10,6 +10,7 @@ #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include #include diff --git a/tests/src/unit-readme.cpp b/tests/src/unit-readme.cpp index 457680f7a..9b8c7f5ef 100644 --- a/tests/src/unit-readme.cpp +++ b/tests/src/unit-readme.cpp @@ -10,6 +10,7 @@ #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include #include diff --git a/tests/src/unit-regression1.cpp b/tests/src/unit-regression1.cpp index a4e82134a..1fe603809 100644 --- a/tests/src/unit-regression1.cpp +++ b/tests/src/unit-regression1.cpp @@ -14,6 +14,7 @@ #define JSON_TESTS_PRIVATE #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include #include diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp index d9f1258db..6c21a350f 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -22,6 +22,7 @@ #include using json = nlohmann::json; using ordered_json = nlohmann::ordered_json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include #include diff --git a/tests/src/unit-udt.cpp b/tests/src/unit-udt.cpp index 0b1d1472f..2654fe8a4 100644 --- a/tests/src/unit-udt.cpp +++ b/tests/src/unit-udt.cpp @@ -14,6 +14,7 @@ DOCTEST_GCC_SUPPRESS_WARNING("-Wnoexcept") #include using nlohmann::json; +using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) #include #include