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 9d0b00a commit e144968Copy full SHA for e144968
examples/Constrained/Examples/Map.hs
@@ -152,3 +152,10 @@ keysExample = constrained $ \k ->
152
where
153
as = lit [1 .. 10]
154
bs = lit [11 .. 20]
155
+
156
+failingKVSpec :: Specification (Map Int Int)
157
+failingKVSpec = constrained $ \ m ->
158
+ [ assert $ 10 <. sizeOf_ m
159
+ , forAll' m $ \ k _v ->
160
+ k `satisfies` chooseSpec (1, constrained $ \k' -> 2 * k' ==. 1) (3, mempty)
161
+ ]
0 commit comments