diff options
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/test.c b/src/or/test.c index c55ec5f4d..2002c6a23 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -913,6 +913,12 @@ test_util(void) test_streq(tmpbuf, "18.244.0.188"); } + /* Test 'escaped' */ + test_streq("\"\"", escaped("")); + test_streq("\"abcd\"", escaped("abcd")); + test_streq("\"\\\\\\n\\r\\t\\\"\\'\"", escaped("\\\n\r\t\"\'")); + test_streq("\"z\\001abc\\277d\"", escaped("z\001abc\277d")); + /* XXXX test older functions. */ smartlist_free(sl); } |