Permalink
Browse files

Fixed the test for size of graph

  • Loading branch information...
1 parent 5ad27f5 commit 76209e6c099b9aa18d91f63dfea527d5adec5685 Prathamesh Sonpatki committed Sep 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/ir/directed_graph/directed_graph_spec.rb
@@ -56,9 +56,9 @@
it "should give correct size of graph" do
@graph.removeEdge(1,2)
- @graph.size.should == 4 # Passes ?
+ @graph.size.should == 4
@graph.addEdge(5,6,'simple')
- @graph.size.should == 4 # Fails; Because size of graph is actually number of vertices according to implementation
+ @graph.size.should == 6
end
end

0 comments on commit 76209e6

Please sign in to comment.