mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
improve numerical ipv6 urldb prefix search test coverage
This commit is contained in:
parent
2406acfeb3
commit
fcc1a1e4c2
@ -831,6 +831,18 @@ START_TEST(urldb_iterate_partial_numeric_v6_test)
|
|||||||
urldb_iterate_entries_cb);
|
urldb_iterate_entries_cb);
|
||||||
ck_assert_int_eq(cb_count, 1);
|
ck_assert_int_eq(cb_count, 1);
|
||||||
|
|
||||||
|
/* double path separators are ignored */
|
||||||
|
cb_count = 0;
|
||||||
|
urldb_iterate_partial("[2001:db8:1f70::999:de8:7648:6e8]//index.html",
|
||||||
|
urldb_iterate_entries_cb);
|
||||||
|
ck_assert_int_eq(cb_count, 1);
|
||||||
|
|
||||||
|
/* bad ipv6 address inet_pton should fail with this */
|
||||||
|
cb_count = 0;
|
||||||
|
urldb_iterate_partial("[2001::1f70::999::7648:8]",
|
||||||
|
urldb_iterate_entries_cb);
|
||||||
|
ck_assert_int_eq(cb_count, 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user