From 6393f35faeab34cc8770be3d3be9d8b8d6aadbc1 Mon Sep 17 00:00:00 2001 From: alexgutteridge Date: Thu, 5 Jul 2007 04:44:27 +0000 Subject: [PATCH] --- test/tc_shortest_paths.rb~ | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 test/tc_shortest_paths.rb~ diff --git a/test/tc_shortest_paths.rb~ b/test/tc_shortest_paths.rb~ deleted file mode 100644 index c614e42..0000000 --- a/test/tc_shortest_paths.rb~ +++ /dev/null @@ -1,28 +0,0 @@ -require 'test/unit' -require 'igraph' -require 'mocha' - -class TestGraph < Test::Unit::TestCase - def test_shortest_paths - graph = IGraph.new(['A','B','C','D'],true) - m = graph.shortest_paths(['A'],IGraph::ALL) - assert_equal 1, m[0][1] - assert_equal 0, m[0][0] - assert_equal graph.vcount, m[0].size - assert_equal nil, m[0][2] - end - - def test_get_shortest_paths_warn - graph = IGraph.new(['A','B','C','D'],true) - graph.expects(:warn).with("Couldn't reach some vertices") - graph.get_shortest_paths('A',['B','C'],IGraph::ALL) - end - - def test_get_shortest_paths - graph = IGraph.new(['A','B','C','D'],true) - m = graph.get_shortest_paths('A',['B','C'],IGraph::ALL) - assert_equal ['A','B'], m[0] - assert_equal [], m[1] - end - -end