bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
8971ca621b7a7337947306494731b75d1d3919e5Timo Sirainen unsigned int i;
8971ca621b7a7337947306494731b75d1d3919e5Timo Sirainen test_assert(strcmp(dict_escape_string(input[i]), input[i+1]) == 0);
8971ca621b7a7337947306494731b75d1d3919e5Timo Sirainen test_assert(strcmp(dict_unescape_string(input[i+1]), input[i]) == 0);
8971ca621b7a7337947306494731b75d1d3919e5Timo Sirainen test_assert(strcmp(dict_unescape_string("x\\"), "x") == 0);
8971ca621b7a7337947306494731b75d1d3919e5Timo Sirainen test_assert(strcmp(dict_unescape_string("\\"), "") == 0);
baf3e87e186453fda13bd21f7cbcb2efc8492e8bTimo Sirainen static void (*const test_functions[])(void) = {