mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Improve test case for read_escaped_data unit test
This commit is contained in:
parent
3c5a3b33e8
commit
4e44024ced
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user