view src/lib/test-lib.c @ 9484:5a6fe52a0cfc HEAD

Added str_append_tabunescaped(). str_tabescape*() now escapes also CR. Added unit tests.
author Timo Sirainen <tss@iki.fi>
date Tue, 16 Jun 2009 13:49:18 -0400
parents 810e36796e3d
children 7fc9e93fe745
line wrap: on
line source

/* Copyright (c) 2007-2009 Dovecot authors, see the included COPYING file */

#include "test-lib.h"

int main(void)
{
	static void (*test_functions[])(void) = {
		test_aqueue,
		test_array,
		test_base64,
		test_bsearch_insert_pos,
		test_buffer,
		test_istream,
		test_mempool_alloconly,
		test_network,
		test_primes,
		test_priorityq,
		test_seq_range_array,
		test_strescape,
		test_str_find,
		test_str_sanitize,
		test_utc_mktime,
		NULL
	};
	return test_run(test_functions);
}