From: Michael Tremer Date: Fri, 5 Apr 2024 15:31:31 +0000 (+0000) Subject: tests: Fix bit length tests X-Git-Tag: 0.9.18~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23ece648843a884f6c3cac262a0cad770ddd74a6;p=location%2Flibloc.git tests: Fix bit length tests Signed-off-by: Michael Tremer --- diff --git a/src/test-network.c b/src/test-network.c index 717ad3a..f6ccb62 100644 --- a/src/test-network.c +++ b/src/test-network.c @@ -308,9 +308,9 @@ int main(int argc, char** argv) { unsigned int bit_length; } bit_length_tests[] = { { "::/0", 0 }, - { "2001::/128", 126 }, - { "1.0.0.0/32", 25 }, - { "0.0.0.1/32", 1 }, + { "2001::/128", 16 }, + { "1.0.0.0/32", 8 }, + { "0.0.0.1/32", 32 }, { "255.255.255.255/32", 32 }, { NULL, 0, }, };