From 36da0e2f78a87f4876e0c23c3486e44ab0805dc1 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Nov 2026 07:20:25 +0000 Subject: [PATCH] Use a raw string literal in the alt-string json_view test clang-tidy (modernize-raw-string-literal) rejects the escaped literal. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01N5NasAgbDGG28MqXjQvLqp Signed-off-by: Claude --- tests/src/unit-alt-string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-alt-string.cpp b/tests/src/unit-alt-string.cpp index df516d92f..4a0260a10 100644 --- a/tests/src/unit-alt-string.cpp +++ b/tests/src/unit-alt-string.cpp @@ -492,7 +492,7 @@ TEST_CASE("alternative string type with json_view") using alt_document = nlohmann::basic_json_document; using alt_editable_document = nlohmann::basic_json_document; - const char* text = "{\"a\":[1,\"x\\u00e4\"],\"b\":{\"c\":true,\"d\":null},\"e\":2.5}"; + const char* text = R"({"a":[1,"x\u00e4"],"b":{"c":true,"d":null},"e":2.5})"; const alt_json j = alt_json::parse(text); SECTION("read-only document")