tests/test_hash_key.c

changeset 890
54565fd74e74
parent 768
0e1cf2cd500e
--- a/tests/test_hash_key.c	Wed Sep 18 00:02:18 2024 +0200
+++ b/tests/test_hash_key.c	Sat Sep 28 15:47:28 2024 +0200
@@ -32,11 +32,11 @@
 #include "cx/string.h"
 
 CX_TEST(test_hash_key_functions) {
-    char const* str = "my key";
+    const char *str = "my key";
     size_t len = strlen(str);
 
     CxHashKey str_key = cx_hash_key_str(str);
-    CxHashKey bytes_key = cx_hash_key_bytes((unsigned char const*)str, len);
+    CxHashKey bytes_key = cx_hash_key_bytes((const unsigned char*)str, len);
     CxHashKey obj_key = cx_hash_key(str, len);
     CxHashKey cxstr_key = cx_hash_key_cxstr(cx_str(str));
 
@@ -53,10 +53,10 @@
 }
 
 CX_TEST(test_hash_key_empty_string) {
-    char const* str = "";
+    const char *str = "";
 
     CxHashKey str_key = cx_hash_key_str(str);
-    CxHashKey bytes_key = cx_hash_key_bytes((unsigned char const*) str, 0);
+    CxHashKey bytes_key = cx_hash_key_bytes((const unsigned char*) str, 0);
     CxHashKey obj_key = cx_hash_key(str, 0);
 
     CX_TEST_DO {

mercurial