update benchmark
This commit is contained in:
parent
cbc08688b3
commit
f057ef7458
@ -15,14 +15,16 @@ BOOST_AUTO_TEST_CASE(json_escaping)
|
||||
std::string output;
|
||||
EscapeJSONString(input, output);
|
||||
|
||||
BOOST_CHECK_EQUAL(SizeOfEscapedJSONString(input), 4);
|
||||
BOOST_CHECK(RequiresJSONStringEscaping(input));
|
||||
BOOST_CHECK_EQUAL(output, "\\b\\\\");
|
||||
|
||||
input = "Aleja \"Solidarnosci\"";
|
||||
output.clear();
|
||||
EscapeJSONString(input, output);
|
||||
BOOST_CHECK_EQUAL(SizeOfEscapedJSONString(input), 22);
|
||||
BOOST_CHECK(RequiresJSONStringEscaping(input));
|
||||
BOOST_CHECK_EQUAL(output, "Aleja \\\"Solidarnosci\\\"");
|
||||
|
||||
BOOST_CHECK(!RequiresJSONStringEscaping("Aleja Solidarnosci"));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(print_int)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user