Commit 9854de3
committed
Use QuickCheck's 'Fun' when testing insertWith and insertWithKey.
We use apply instead of apply2 and apply3 because the latter two are only
available in recent QuickCheck versions. We also use (Int, Int, Int) -> Int
for the function for insertWithKey so we don't need to add additional instances
to Key to work with `Fun`.1 parent acac434 commit 9854de3
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 | | |
153 | | - | |
154 | | - | |
155 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
0 commit comments