Correcting test method names

This commit is contained in:
Amos Paribocci 2023-05-23 08:38:06 +02:00
parent 360cba9a61
commit 0b42d46b83
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ class TestUnweightedGraph < Minitest::Test
assert graph.neighbors(:v).empty?
end
def test_add_edge_adds_edge_to_directed_unweighted_graph
def test_add_edge_adds_edge_to_undirected_unweighted_graph
graph = UnweightedGraph.new(nodes: [:u, :v], directed: false)
graph.add_edge(:u, :v)

View file

@ -78,7 +78,7 @@ class TestWeightedGraph < Minitest::Test
assert graph.edges(:v).empty?
end
def test_add_edge_adds_edge_to_directed_weighted_graph
def test_add_edge_adds_edge_to_undirected_weighted_graph
graph = WeightedGraph.new(nodes: [:u, :v], directed: false)
graph.add_edge(:u, :v, 2)