mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Tests for mg_to64()
This commit is contained in:
1 parent
e0395a9907
commit
912dd518bf
1 file changed
+4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user