From 6cb5b5504908a8fb9648a67bd543ee9919019c31 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 25 Dec 2014 00:26:42 +0000 Subject: [PATCH] Added parser tests --- Makefile.am | 1 + tests/testsuite.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f11c97b3..0c27b06d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -83,6 +83,7 @@ tests_sources = \ tests/test_history.c tests/test_history.h \ tests/test_jid.c tests/test_jid.h \ tests/test_muc.c tests/test_muc.h \ + tests/test_parser.c tests/test_parser.h \ tests/test_autocomplete.c tests/test_autocomplete.h \ tests/testsuite.c diff --git a/tests/testsuite.c b/tests/testsuite.c index bc217b7b..dfb76df7 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -134,7 +134,6 @@ int main(int argc, char* argv[]) { unit_test(returns_fulljid_when_exists), unit_test(returns_barejid_when_fulljid_not_exists), -/* unit_test(parse_null_returns_null), unit_test(parse_empty_returns_null), unit_test(parse_space_returns_null), @@ -186,6 +185,7 @@ int main(int argc, char* argv[]) { unit_test(parse_options_when_unknown_opt_sets_error), unit_test(parse_options_with_duplicated_option_sets_error), +/* unit_test(empty_list_when_none_added), unit_test(contains_one_element), unit_test(first_element_correct),