From 0b42d46b83729bca5ee8ffe2b5c8d4562245fab9 Mon Sep 17 00:00:00 2001 From: Amos Paribocci Date: Tue, 23 May 2023 08:38:06 +0200 Subject: [PATCH] Correcting test method names --- data_structures/graphs/unweighted_graph_test.rb | 2 +- data_structures/graphs/weighted_graph_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data_structures/graphs/unweighted_graph_test.rb b/data_structures/graphs/unweighted_graph_test.rb index b4f7443..734cc74 100644 --- a/data_structures/graphs/unweighted_graph_test.rb +++ b/data_structures/graphs/unweighted_graph_test.rb @@ -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) diff --git a/data_structures/graphs/weighted_graph_test.rb b/data_structures/graphs/weighted_graph_test.rb index 229d457..d30023a 100644 --- a/data_structures/graphs/weighted_graph_test.rb +++ b/data_structures/graphs/weighted_graph_test.rb @@ -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)