Skip to content

Commit e144968

Browse files
show problem with map generation
1 parent 9d0b00a commit e144968

File tree

1 file changed

+7
-0
lines changed
  • examples/Constrained/Examples

1 file changed

+7
-0
lines changed

examples/Constrained/Examples/Map.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,10 @@ keysExample = constrained $ \k ->
152152
where
153153
as = lit [1 .. 10]
154154
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

Comments
 (0)