Tests for mg_to64()

This commit is contained in:
cpq committed 2021-03-21 16:18:44 +00:00
1 parent e0395a9907
commit 912dd518bf
1 file changed
+4
+4
View File
@@ -1149,6 +1149,10 @@ static void test_util(void) {
ASSERT(s == buf);
ASSERT(strcmp(buf, "a%40b.c") == 0);
}
ASSERT(mg_to64(mg_str("-9223372036854775809")) == 0);
ASSERT(mg_to64(mg_str("9223372036854775800")) == 0);
ASSERT(mg_to64(mg_str("9223372036854775700")) > 0);
}
static void test_crc32(void) {