From 86db3f98013d5d406bf7d0d4636a1edbbe0cbf6b Mon Sep 17 00:00:00 2001 From: hladu357 Date: Mon, 10 Jun 2024 10:06:23 +0200 Subject: [PATCH] test generator fix --- tests/test-radix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-radix.py b/tests/test-radix.py index f186e13..fdf5f43 100644 --- a/tests/test-radix.py +++ b/tests/test-radix.py @@ -30,8 +30,8 @@ def generate_random_test_cases(rules, n): print(f"{test_network} is closer to {oth_network} than {closest_rule[0]}") closest_rule = oth_rule - f.write(f"{test_network} {closest_rule[1]}\n") - print(f"Generated test case: {test_network} {closest_rule[1]}") + f.write(f"{test_network.supernet(new_prefix=closest_rule[0].prefixlen)} {closest_rule[1]}\n") + # print(f"Generated test case: {test_network} {closest_rule[1]}") print("Tests for rule", rule_network, "with next hop", rule_next_hop, "generated") def main():