test/base/test_directed_graph.rb in nanoc-3.7.4 vs test/base/test_directed_graph.rb in nanoc-3.7.5
- old
+ new
@@ -1,9 +1,8 @@
# encoding: utf-8
class Nanoc::DirectedGraphTest < Nanoc::TestCase
-
def test_direct_predecessors
graph = Nanoc::DirectedGraph.new([1, 2, 3])
graph.add_edge(1, 2)
graph.add_edge(2, 3)
@@ -61,11 +60,11 @@
assert_equal [[0, 1], [2, 1]], graph.edges.sort
end
def test_add_edge
graph = Nanoc::DirectedGraph.new([1, 2, 3])
-
+
assert_equal [], graph.successors_of(1)
assert_equal [], graph.predecessors_of(2)
graph.add_edge(1, 2)
@@ -82,11 +81,11 @@
assert graph.vertices.include?(3)
end
def test_delete_edge
graph = Nanoc::DirectedGraph.new([1, 2, 3])
- graph.add_edge(1,2)
+ graph.add_edge(1, 2)
assert_equal [2], graph.successors_of(1)
assert_equal [1], graph.predecessors_of(2)
graph.delete_edge(1, 2)
@@ -283,7 +282,6 @@
def test_example
YARD.parse(LIB_DIR + '/nanoc/base/directed_graph.rb')
assert_examples_correct 'Nanoc::DirectedGraph'
end
-
end