From e4462ec8c6adf651b9222f6a62c971660109893f Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Wed, 22 Dec 2004 00:34:39 +0000 Subject: [PATCH] ICU-4092 Increase code coverage X-SVN-Rev: 16994 --- icu4c/source/test/cintltst/cstrtest.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/icu4c/source/test/cintltst/cstrtest.c b/icu4c/source/test/cintltst/cstrtest.c index 2a17551b90..ea6fe5cbea 100644 --- a/icu4c/source/test/cintltst/cstrtest.c +++ b/icu4c/source/test/cintltst/cstrtest.c @@ -95,6 +95,14 @@ static void TestAPI(void) if(uprv_stricmp(src, "1AF") != 0 || i != 3){ log_err("FAIL: ****integerToString(src, 431, 16); failed. Expected: \"1AF\", Got: %s\n", src); } + i = T_CString_int64ToString(src, U_INT64_MAX, 10); + if(uprv_strcmp(src, "9223372036854775807") != 0 || i != 19){ + log_err("FAIL: ****integerToString(src, 9223372036854775807, 10); failed. Got: %s\n", src); + } + i = T_CString_int64ToString(src, U_INT64_MAX, 16); + if(uprv_stricmp(src, "7FFFFFFFFFFFFFFF") != 0 || i != 16){ + log_err("FAIL: ****integerToString(src, 7FFFFFFFFFFFFFFF, 16); failed. Got: %s\n", src); + } uprv_strcpy(src, "this is lower case"); if(T_CString_stricmp(src, "THIS is lower CASE") != 0){