Commit 822172c5 authored by Niels's avatar Niels

make pretty

parent 9f562caa
.DS_Store
src/.DS_Store src/.DS_Store
.DS_Store aclocal.m4
autom4te.cache/*
config.log
config.status
configure
depcomp
html
*.o
benchmark/auctions.json *.Po
benchmark/citylots.json
...@@ -218,7 +218,7 @@ void test_array() ...@@ -218,7 +218,7 @@ void test_array()
try try
{ {
a[5] = 1; a[5] = 1;
// assert(false); // assert(false);
} }
catch (const std::exception& ex) catch (const std::exception& ex)
{ {
......
...@@ -389,14 +389,14 @@ TEST_CASE("object") ...@@ -389,14 +389,14 @@ TEST_CASE("object")
// add initializer list (of pairs) // add initializer list (of pairs)
{ {
JSON je; JSON je;
je.push_back({ {"one", 1}, {"two", false}, {"three", {1,2,3}} }); je.push_back({ {"one", 1}, {"two", false}, {"three", {1, 2, 3}} });
CHECK(je["one"].get<int>() == 1); CHECK(je["one"].get<int>() == 1);
CHECK(je["two"].get<bool>() == false); CHECK(je["two"].get<bool>() == false);
CHECK(je["three"].size() == 3); CHECK(je["three"].size() == 3);
} }
{ {
JSON je; JSON je;
je += { {"one", 1}, {"two", false}, {"three", {1,2,3}} }; je += { {"one", 1}, {"two", false}, {"three", {1, 2, 3}} };
CHECK(je["one"].get<int>() == 1); CHECK(je["one"].get<int>() == 1);
CHECK(je["two"].get<bool>() == false); CHECK(je["two"].get<bool>() == false);
CHECK(je["three"].size() == 3); CHECK(je["three"].size() == 3);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment