mirror of
https://github.com/nlohmann/json.git
synced 2026-09-26 09:50:30 +00:00
✅ add regression test
This commit is contained in:
@@ -495,7 +495,7 @@ TEST_CASE("regression tests 2")
|
|||||||
const char DATA[] = R"("Hello, world!")";
|
const char DATA[] = R"("Hello, world!")";
|
||||||
const auto s = std::as_bytes(std::span(DATA));
|
const auto s = std::as_bytes(std::span(DATA));
|
||||||
json j = json::parse(s);
|
json j = json::parse(s);
|
||||||
CHECK(j.dump() == "Hello, world!");
|
CHECK(j.dump() == "\"Hello, world!\"");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user