add comments
This commit is contained in:
parent
889e4ce05d
commit
87db4807c3
@ -19,6 +19,7 @@ BOOST_AUTO_TEST_CASE(json_escaping)
|
|||||||
BOOST_CHECK_EQUAL(output, "\\b\\\\");
|
BOOST_CHECK_EQUAL(output, "\\b\\\\");
|
||||||
|
|
||||||
input = "Aleja \"Solidarnosci\"";
|
input = "Aleja \"Solidarnosci\"";
|
||||||
|
output.clear();
|
||||||
EscapeJSONString(input, output);
|
EscapeJSONString(input, output);
|
||||||
BOOST_CHECK_EQUAL(SizeOfEscapedJSONString(input), 22);
|
BOOST_CHECK_EQUAL(SizeOfEscapedJSONString(input), 22);
|
||||||
BOOST_CHECK_EQUAL(output, "Aleja \\\"Solidarnosci\\\"");
|
BOOST_CHECK_EQUAL(output, "Aleja \\\"Solidarnosci\\\"");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user