瀏覽代碼

Coverage for testing of UA_readNumberWithBase

Frank Meerkoetter 5 年之前
父節點
當前提交
06d47d6620
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/check_utils.c

+ 3 - 0
tests/check_utils.c

@@ -200,6 +200,9 @@ START_TEST(readNumberWithBase) {
     ck_assert_uint_eq(UA_readNumberWithBase((UA_Byte*)"f", 1, &result, 16), 1);
     ck_assert_uint_eq(result, 15);
 
+    ck_assert_uint_eq(UA_readNumberWithBase((UA_Byte*)"F", 1, &result, 16), 1);
+    ck_assert_uint_eq(result, 15);
+
     ck_assert_uint_eq(UA_readNumberWithBase((UA_Byte*)"1x", 2, &result, 16), 1);
     ck_assert_uint_eq(result, 1);