Fix test
This commit is contained in:
parent
a131ecc059
commit
51d8c28ea5
@ -283,23 +283,23 @@ TEST_CASE("JSON Visit Node")
|
|||||||
|
|
||||||
std::set<std::string> expected
|
std::set<std::string> expected
|
||||||
{
|
{
|
||||||
"\"/null\" - null - null",
|
"/null - null - null",
|
||||||
"\"/int\" - number_integer - -1",
|
"/int - number_integer - -1",
|
||||||
"\"/uint\" - number_unsigned - 1",
|
"/uint - number_unsigned - 1",
|
||||||
"\"/float\" - number_float - 1.0",
|
"/float - number_float - 1.0",
|
||||||
"\"/boolean\" - boolean - true",
|
"/boolean - boolean - true",
|
||||||
"\"/string\" - string - \"string\"",
|
"/string - string - \"string\"",
|
||||||
"\"/array/0\" - number_integer - 0",
|
"/array/0 - number_integer - 0",
|
||||||
"\"/array/1\" - number_integer - 1",
|
"/array/1 - number_integer - 1",
|
||||||
|
|
||||||
"\"/array/2/null\" - null - null",
|
"/array/2/null - null - null",
|
||||||
"\"/array/2/int\" - number_integer - -1",
|
"/array/2/int - number_integer - -1",
|
||||||
"\"/array/2/uint\" - number_unsigned - 1",
|
"/array/2/uint - number_unsigned - 1",
|
||||||
"\"/array/2/float\" - number_float - 1.0",
|
"/array/2/float - number_float - 1.0",
|
||||||
"\"/array/2/boolean\" - boolean - true",
|
"/array/2/boolean - boolean - true",
|
||||||
"\"/array/2/string\" - string - \"string\"",
|
"/array/2/string - string - \"string\"",
|
||||||
"\"/array/2/array/0\" - number_integer - 0",
|
"/array/2/array/0 - number_integer - 0",
|
||||||
"\"/array/2/array/1\" - number_integer - 1"
|
"/array/2/array/1 - number_integer - 1"
|
||||||
};
|
};
|
||||||
|
|
||||||
json.visit(
|
json.visit(
|
||||||
@ -325,6 +325,7 @@ TEST_CASE("JSON Visit Node")
|
|||||||
}
|
}
|
||||||
str << " - " << j.dump();
|
str << " - " << j.dump();
|
||||||
CHECK(json.at(p) == j);
|
CHECK(json.at(p) == j);
|
||||||
|
INFO(str.str());
|
||||||
CHECK(expected.count(str.str()) == 1);
|
CHECK(expected.count(str.str()) == 1);
|
||||||
expected.erase(str.str());
|
expected.erase(str.str());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user