Skip to content

Commit

Permalink
Made post-edge-reverse test a bit more interesting.
Browse files Browse the repository at this point in the history
  • Loading branch information
François Rey committed Jun 6, 2014
1 parent b8a9867 commit 0ce45ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/loom/test/alg_generic.clj
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@
(are [g] (let [dg (g/digraph g)
edges (g/edges dg)
loop-post-traverse
(loop [nodes (g/nodes dg)
(loop [nodes (reverse (g/nodes dg))
; reverse makes this more interesting as graphs
; are often specified in the forward direction
seen #{}
acc ()]
(if-let [node (first nodes)]
Expand Down

0 comments on commit 0ce45ac

Please sign in to comment.