Browse Source

Coverage for testing of UA_readNumberWithBase

Frank Meerkoetter 5 years ago
parent
commit
06d47d6620
1 changed files with 3 additions and 0 deletions
  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);