From a2e83e5ff635f040cffe4c12cfdaa60fa320c3de Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周三, 22 4月 2015 01:59:50 +0800 Subject: [PATCH] Make public SCPI_LongToStr, SCPI_DoubleToStr --- libscpi/test/test_scpi_utils.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libscpi/test/test_scpi_utils.c b/libscpi/test/test_scpi_utils.c index 5817f61..e357b65 100644 --- a/libscpi/test/test_scpi_utils.c +++ b/libscpi/test/test_scpi_utils.c @@ -40,6 +40,7 @@ #include "scpi/scpi.h" #include "scpi/utils_private.h" +#include "scpi/utils.h" /* * CUnit Test Suite @@ -67,7 +68,7 @@ char str[32]; size_t len; - len = longToStr(10, str, 32); + len = SCPI_LongToStr(10, str, 32, 10); CU_ASSERT(len == 2); CU_ASSERT(str[0] == '1'); CU_ASSERT(str[1] == '0'); @@ -80,7 +81,7 @@ #define TEST_DOUBLE_TO_STR(v, r, s) \ do { \ - result = doubleToStr(v, str, sizeof(str)); \ + result = SCPI_DoubleToStr(v, str, sizeof(str)); \ CU_ASSERT_EQUAL(result, r); \ CU_ASSERT_STRING_EQUAL(str, s); \ } while(0) \ -- Gitblit v1.9.1