mirror of
https://github.com/nlohmann/json.git
synced 2024-07-04 21:36:57 +02:00
✅ add regression test
This commit is contained in:
parent
e4fc598466
commit
4402176df5
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue