Improve test case for read_escaped_data unit test

This commit is contained in:
Esteban Manchado Velázquez 2012-02-06 19:53:07 +01:00 committed by Nick Mathewson
parent 3c5a3b33e8
commit 4e44024ced

View File

@ -1131,12 +1131,12 @@ test_util_control_formats(void)
{
char *out = NULL;
const char *inp =
"..This is a test\r\nof the emergency \nbroadcast\r\n..system.\r\nZ.\r\n";
"..This is a test\r\n.of the emergency \n..system.\r\n\rZ.\r\n";
size_t sz;
sz = read_escaped_data(inp, strlen(inp), &out);
test_streq(out,
".This is a test\nof the emergency \nbroadcast\n.system.\nZ.\n");
".This is a test\nof the emergency \n.system.\n\rZ.\n");
test_eq(sz, strlen(out));
done: