Skip to content

Commit a7506ea

Browse files
Update test/Constrained/GraphSpec.hs
Co-authored-by: Joosep Jääger <[email protected]>
1 parent 043ec93 commit a7506ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Constrained/GraphSpec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ prop_find_cycle_sound :: Property
9797
prop_find_cycle_sound =
9898
forAllShrink (mkGraph @Node <$> arbitrary) shrink $ \ g ->
9999
let c = findCycle g
100-
in counterexample (show c) $ all (\(x, y) -> dependsOn x y g) (zip c (drop 1 c))
100+
in counterexample (show c) $ all (\(x, y) -> dependsOn x y g) (zip c (drop 1 $ cycle c))
101101

102102
prop_find_cycle_loops :: Property
103103
prop_find_cycle_loops =

0 commit comments

Comments
 (0)