rename merge_nodes function to solution

This commit is contained in:
Pavel Patsey
2025-01-26 10:39:31 +03:00
parent 04b4d14a30
commit 52c5fb679e
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -4,8 +4,8 @@ from vpn_manager.cidr4_merge.cidr4_merger import (
find_neighbors,
find_parent,
make_cidr4,
merge_nodes,
merge_two_nodes,
solution,
)
@@ -97,7 +97,7 @@ def test_find_neighbors():
def test_merge_nodes():
assert merge_nodes(
assert solution(
[
(0, 32),
(3, 32),
@@ -106,7 +106,7 @@ def test_merge_nodes():
2,
) == ([(0, 30), (4, 32)], 2)
assert merge_nodes(
assert solution(
[
(0, 32),
(3, 32),
@@ -116,7 +116,7 @@ def test_merge_nodes():
2,
) == ([(0, 29)], 4)
assert merge_nodes(
assert solution(
[
(0, 32),
(3, 32),