bug fix in pointer aligning function

This commit is contained in:
cozis
2022-04-19 01:55:39 +02:00
parent 8e3b4411ed
commit 1ec3d78ab6
2 changed files with 8 additions and 15 deletions
+5 -13
View File
@@ -11,24 +11,17 @@ static const struct {
const char *src;
} tests[] = {
TEST("null"),
TEST("\t\n null \t\n"),
TEST("true"),
TEST("\t\n true \t\n"),
TEST("false"),
TEST("\t\n false \t\n"),
TEST("1"),
TEST(" 1 "),
TEST("100"),
TEST("1.0"),
TEST("100.111"),
TEST("[]"),
TEST("[1, 2, 3]"),
TEST(" [ ] "),
TEST(" [ 1 , 2 , 3 ] "),
TEST("{}"),
TEST(" { } "),
TEST(" { \"key\" : 5 } "),
TEST("{\"key\":5}"),
TEST("{\"key1\":5,\"key2\":3}"),
};
#undef TEST
@@ -82,7 +75,6 @@ int main()
if(json_strings_match(serialized, tests[i].src))
{
//fprintf(stdout, "Passed.\n");
passed += 1;
}
else