]> git.ipfire.org Git - location/libloc.git/commitdiff
tests: Fix bit length tests
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Apr 2024 15:31:31 +0000 (15:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Apr 2024 15:31:31 +0000 (15:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/test-network.c

index 717ad3abd92a332bc744f1cb378fcbf904961e07..f6ccb626a9e9c75192f2867365c42110f51c232f 100644 (file)
@@ -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, },
        };