Skip to content

Commit

Permalink
Fixed the test for size of graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Prathamesh Sonpatki committed Sep 21, 2012
1 parent 5ad27f5 commit 76209e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/ir/directed_graph/directed_graph_spec.rb
Expand Up @@ -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.