libscpi/test/test_scpi_utils.c
@@ -218,7 +218,7 @@ static void test_doubleToStr() { const size_t max=49+1; double val[] = {1, -1, 1.1, -1.1, 1e3, 1e30, -1.3e30, -1.3e-30}; int N = sizeof(val) / sizeof(int); int N = sizeof(val) / sizeof(double); int i; char str[max]; char ref[max]; @@ -226,7 +226,7 @@ for (i=0; i<N; i++) { len = SCPI_DoubleToStr(val[i], str, max); snprintf(ref, max, "%g", val[i]); snprintf(ref, max, "%lg", val[i]); CU_ASSERT(len == strlen(ref)); CU_ASSERT_STRING_EQUAL(str, ref); }