test/base/test_directed_graph.rb in nanoc-3.3.2 vs test/base/test_directed_graph.rb in nanoc-3.3.3
- old
+ new
@@ -52,11 +52,14 @@
assert_equal [ [ 0, 1 ], [ 1, 2 ] ], graph.edges.sort
end
def test_edges_with_new_vertices
graph = Nanoc::DirectedGraph.new([ 1 ])
+ assert_equal [ 1 ], graph.vertices
graph.add_edge(1, 2)
+ assert_equal [ 1, 2 ], graph.vertices
graph.add_edge(3, 2)
+ assert_equal [ 1, 2, 3 ], graph.vertices
assert_equal [ [ 0, 1 ], [ 2, 1 ] ], graph.edges.sort
end
def test_add_edge