1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

Fully cover tr_metainfo_sanitize_path_component

This commit is contained in:
Mike Gelfand 2019-06-24 06:32:38 +03:00
parent 99033b067d
commit bff188c2cf

View file

@ -144,7 +144,9 @@ static int test_sanitize(void)
{ "foo", 3, "foo", false },
{ ".foo", 4, ".foo", false },
{ "..foo", 5, "..foo", false },
{ "foo.bar.baz", 11, "foo.bar.baz", false }
{ "foo.bar.baz", 11, "foo.bar.baz", false },
{ "null", 4, "null", false },
{ "compass", 7, "compass", false }
};
for (size_t i = 0; i < TR_N_ELEMENTS(test_data); ++i)