From 31be514752067ed9ab956b2ca7389012afd265e7 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周六, 18 4月 2015 16:56:11 +0800 Subject: [PATCH] Add string parameter test --- libscpi/test/test_scpi_utils.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libscpi/test/test_scpi_utils.c b/libscpi/test/test_scpi_utils.c index a6f882c..dad8808 100644 --- a/libscpi/test/test_scpi_utils.c +++ b/libscpi/test/test_scpi_utils.c @@ -61,6 +61,9 @@ CU_ASSERT(strnpbrk(str, 4, "b") == NULL); CU_ASSERT(strnpbrk(str, 1, "h") == NULL); CU_ASSERT(strnpbrk(str, 4, "xo") == (str + 2)); + + CU_ASSERT(strnpbrk(str, 4, "j") == (str + 3)); + } -- Gitblit v1.9.1