We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 043ec93 commit a7506eaCopy full SHA for a7506ea
test/Constrained/GraphSpec.hs
@@ -97,7 +97,7 @@ prop_find_cycle_sound :: Property
97
prop_find_cycle_sound =
98
forAllShrink (mkGraph @Node <$> arbitrary) shrink $ \ g ->
99
let c = findCycle g
100
- in counterexample (show c) $ all (\(x, y) -> dependsOn x y g) (zip c (drop 1 c))
+ in counterexample (show c) $ all (\(x, y) -> dependsOn x y g) (zip c (drop 1 $ cycle c))
101
102
prop_find_cycle_loops :: Property
103
prop_find_cycle_loops =
0 commit comments