mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-11-16 19:50:00 +01:00
Correcting test method names
This commit is contained in:
parent
360cba9a61
commit
0b42d46b83
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue