Merge pull request #2158 from dota17/output_adapter

Fix PR#1006
This commit is contained in:
Niels Lohmann 2020-06-05 08:25:19 +02:00 committed by GitHub
commit 5fe6b83c26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,9 +225,9 @@ TEST_CASE("alternative string type")
{
alt_json doc;
doc["list"] = { 1, 0, 2 };
doc["object"] = { {"currency", "USD"}, {"value", 42.99} };
alt_string dump = doc.dump();
CHECK(dump == R"({"list":[1,0,2]})");
CHECK(dump == R"({"object":{"currency":"USD","value":42.99}})");
}
}