add regression test

This commit is contained in:
Niels Lohmann 2020-12-29 20:52:57 +01:00
parent e4fc598466
commit 4402176df5
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -495,7 +495,7 @@ TEST_CASE("regression tests 2")
const char DATA[] = R"("Hello, world!")";
const auto s = std::as_bytes(std::span(DATA));
json j = json::parse(s);
CHECK(j.dump() == "Hello, world!");
CHECK(j.dump() == "\"Hello, world!\"");
}
#endif
}