From e428a288113dc87ceac66393227e25e060f62279 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: ćšć, 10 9æ 2015 06:23:18 +0800 Subject: [PATCH] Add Numeric list parsing --- libscpi/test/test_parser.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/libscpi/test/test_parser.c b/libscpi/test/test_parser.c index 5365f84..ed403d7 100644 --- a/libscpi/test/test_parser.c +++ b/libscpi/test/test_parser.c @@ -438,10 +438,14 @@ TEST_ParamCopyText("\'a\"c\'", TRUE, "a\"c", 3, TRUE, 0); TEST_ParamCopyText("\"a\"\"c\"", TRUE, "a\"c", 3, TRUE, 0); TEST_ParamCopyText("\"a\'c\"", TRUE, "a\'c", 3, TRUE, 0); + TEST_ParamCopyText("\"\"", TRUE, "", 0, TRUE, 0); + TEST_ParamCopyText("", FALSE, "", 0, FALSE, 0); + TEST_ParamCopyText("\"\"", FALSE, "", 0, TRUE, 0); } int main() { + unsigned int result; CU_pSuite pSuite = NULL; /* Initialize the CUnit test registry */ @@ -471,7 +475,8 @@ /* Run all tests using the CUnit Basic interface */ CU_basic_set_mode(CU_BRM_VERBOSE); CU_basic_run_tests(); + result = CU_get_number_of_tests_failed(); CU_cleanup_registry(); - return CU_get_error(); + return result ? result : CU_get_error(); } -- Gitblit v1.9.1