File: QCheck_runner_test.expected.ocaml4.32

package info (click to toggle)
ocaml-qcheck 0.91-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,160 kB
  • sloc: ml: 11,771; sh: 46; makefile: 39
file content (333 lines) | stat: -rw-r--r-- 19,038 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
random seed: 1234

--- Failure --------------------------------------------------------------------

Test should_fail_sort_id failed (13 shrink steps):

[1; 0]

=== Error ======================================================================

Test should_error_raise_exn errored on (31 shrink steps):

0

exception Dune__exe__QCheck_runner_test.Error


+++ Collect ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Collect results for test collect_results:

 3:     25 cases  (25.0%)
 4:     20 cases  (20.0%)
 0:     20 cases  (20.0%)
 1:     18 cases  (18.0%)
 2:     17 cases  (17.0%)

+++ Stats for with_stats ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats mod4:
  num: 100, avg: 1.68, stddev: 1.09, median 2, min 0, max 3
  0: ##############################                                   17
  1: ###################################################              29
  2: ########################################                         23
  3: #######################################################          31

stats num:
  num: 100, avg: 66.84, stddev: 31.94, median 65, min 2, max 120
    2..  7: ##################                                                3
    8.. 13: ##################                                                3
   14.. 19:                                                                   0
   20.. 25: ##########################################                        7
   26.. 31: ########################                                          4
   32.. 37: ########################                                          4
   38.. 43: ##################                                                3
   44.. 49: ################################################                  8
   50.. 55: ####################################                              6
   56.. 61: ####################################                              6
   62.. 67: #######################################################           9
   68.. 73: ##########################################                        7
   74.. 79: ########################                                          4
   80.. 85: ##################                                                3
   86.. 91: ############                                                      2
   92.. 97: ##########################################                        7
   98..103: ####################################                              6
  104..109: ####################################                              6
  110..115: #######################################################           9
  116..121: ##################                                                3

--- Failure --------------------------------------------------------------------

Test neg test unexpected success failed:

Negative test neg test unexpected success succeeded but was expected to fail

=== Error ======================================================================

Test neg fail with error errored on (7 shrink steps):

0

exception Dune__exe__QCheck_runner_test.Error


--- Failure --------------------------------------------------------------------

Test FAIL_pred_map_commute failed (48 shrink steps):

([1], {_ -> 0}, {1 -> true; _ -> false})

--- Failure --------------------------------------------------------------------

Test FAIL_fun2_pred_strings failed (2 shrink steps):

{"some random string" -> true; _ -> false}

--- Failure --------------------------------------------------------------------

Test fold_left fold_right failed (34 shrink steps):

(0, [1], {(1, 0) -> 1; _ -> 0})

+++ Messages ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Messages for test fold_left fold_right:

l=[1], fold_left=1, fold_right=0


--- Failure --------------------------------------------------------------------

Test fold_left fold_right uncurried failed (44 shrink steps):

({(0, 7) -> 1; _ -> 0}, 0, [7])

--- Failure --------------------------------------------------------------------

Test long_shrink failed (87 shrink steps):

([0], [-1])

--- Failure --------------------------------------------------------------------

Test mod3_should_fail failed (34 shrink steps):

-21

+++ Stats for stats_neg ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats dist:
  num: 5000, avg: 0.17, stddev: 29.68, median 0, min -99, max 99
  -99..-90: #                                                                65
  -89..-80: #                                                                63
  -79..-70: #                                                                64
  -69..-60: #                                                                58
  -59..-50: #                                                                67
  -49..-40: #                                                                72
  -39..-30: #                                                                61
  -29..-20: #                                                                61
  -19..-10: #                                                                67
   -9..  0: #######################################################        2076
    1.. 10: ##############################################                 1764
   11.. 20: #                                                                66
   21.. 30: #                                                                64
   31.. 40: #                                                                64
   41.. 50: #                                                                67
   51.. 60: #                                                                60
   61.. 70: #                                                                75
   71.. 80: #                                                                60
   81.. 90: #                                                                60
   91..100: #                                                                66

!!! Warning !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Warning for test WARN_unlikely_precond:

WARNING: only 0.6% tests (of 2000) passed precondition for "WARN_unlikely_precond"

NOTE: it is likely that the precondition is too strong, or that the generator is buggy.

--- Failure --------------------------------------------------------------------

Test FAIL_unlikely_precond failed:

ERROR: only 0.6% tests (of 2000) passed precondition for "FAIL_unlikely_precond"

NOTE: it is likely that the precondition is too strong, or that the generator is buggy.


--- Failure --------------------------------------------------------------------

Test FAIL_#99_1 failed:

ERROR: uncaught exception in generator for test FAIL_#99_1 after 100 steps:
Exception: QCheck.No_example_found("<example>")
Backtrace: 

+++ Stats for stat_display_test_1 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats dist:
  num: 1000, avg: 0.90, stddev: 28.23, median 0, min -99, max 99
  -99..-90: #                                                                12
  -89..-80: #                                                                11
  -79..-70: #                                                                 9
  -69..-60:                                                                   6
  -59..-50: #                                                                11
  -49..-40: #                                                                13
  -39..-30: #                                                                 9
  -29..-20: #                                                                13
  -19..-10:                                                                   8
   -9..  0: #######################################################         453
    1.. 10: #########################################                       340
   11.. 20: #                                                                15
   21.. 30: #                                                                11
   31.. 40: #                                                                12
   41.. 50: #                                                                13
   51.. 60: #                                                                13
   61.. 70: #                                                                16
   71.. 80: #                                                                 9
   81.. 90: #                                                                16
   91..100: #                                                                10

+++ Stats for stat_display_test_2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats dist:
  num: 1000, avg: 15.11, stddev: 23.27, median 6, min 0, max 99
    0..  4: ####################################################            377
    5..  9: #######################################################         392
   10.. 14: ##                                                               20
   15.. 19: ##                                                               15
   20.. 24: #                                                                11
   25.. 29: ##                                                               17
   30.. 34: ##                                                               19
   35.. 39: ##                                                               17
   40.. 44: #                                                                10
   45.. 49: #                                                                 9
   50.. 54: #                                                                 8
   55.. 59: #                                                                 9
   60.. 64: ##                                                               15
   65.. 69: #                                                                10
   70.. 74: #                                                                13
   75.. 79: ##                                                               19
   80.. 84: #                                                                11
   85.. 89: #                                                                13
   90.. 94:                                                                   5
   95.. 99: #                                                                10

+++ Stats for stat_display_test_3 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats dist:
  num: 1000, avg: 195335.64, stddev: 136803.99, median 195583, min -43624, max 435210
  -43624..-19683: ############################################                     52
  -19682..  4259: ########################################                         47
    4260.. 28201: ##############################                                   36
   28202.. 52143: ############################################                     52
   52144.. 76085: ##########################################                       50
   76086..100027: #######################################################          64
  100028..123969: ###############################################                  55
  123970..147911: ########################################                         47
  147912..171853: ##############################################                   54
  171854..195795: ####################################                             43
  195796..219737: ##############################################                   54
  219738..243679: ###########################################                      51
  243680..267621: ################################################                 57
  267622..291563: ##########################################                       49
  291564..315505: ####################################                             42
  315506..339447: ######################################                           45
  339448..363389: ################################################                 57
  363390..387331: ######################################                           45
  387332..411273: ##########################################                       49
  411274..435215: ###########################################                      51

+++ Stats for stat_display_test_4 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats dist:
  num: 1000, avg: -173.78, stddev: 23042.92, median 180, min -39859, max 39942
  -39859..-35869: #############################################                    56
  -35868..-31878: ###################################                              43
  -31877..-27887: #################################################                60
  -27886..-23896: #####################################                            46
  -23895..-19905: ########################################                         49
  -19904..-15914: ####################################                             45
  -15913..-11923: ############################################                     54
  -11922.. -7932: ###############################################                  58
   -7931.. -3941: #########################################                        51
   -3940..    50: ############################                                     35
      51..  4041: #######################################                          48
    4042..  8032: ##########################################                       52
    8033.. 12023: #########################################                        51
   12024.. 16014: ###########################################                      53
   16015.. 20005: ############################################                     54
   20006.. 23996: ##################################                               42
   23997.. 27987: #######################################################          67
   27988.. 31978: ################################                                 40
   31979.. 35969: #########################################                        51
   35970.. 39960: ####################################                             45

+++ Stats for stat_display_test_5 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats dist:
  num: 1000, avg: 0.02, stddev: 2.55, median 0, min -4, max 4
  -4: ############################################                     99
  -3: #####################################################           118
  -2: ##################################################              111
  -1: ##################################################              113
   0: ##################################################              113
   1: #####################################################           118
   2: #############################################                   102
   3: #######################################################         122
   4: ##############################################                  104

+++ Stats for stat_display_test_6 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats dist:
  num: 1000, avg: 6.67, stddev: 6.39, median 7, min -4, max 17
  -4..-3: #############################################                    90
  -2..-1: #############################################                    91
   0.. 1: ##########################################                       84
   2.. 3: ##############################################                   92
   4.. 5: ###########################################                      87
   6.. 7: ###########################################                      86
   8.. 9: ############################################                     89
  10..11: ###########################################                      87
  12..13: #######################################################         110
  14..15: #############################################                    91
  16..17: ##############################################                   93
  18..19:                                                                   0
  20..21:                                                                   0
  22..23:                                                                   0
  24..25:                                                                   0
  26..27:                                                                   0
  28..29:                                                                   0
  30..31:                                                                   0
  32..33:                                                                   0
  34..35:                                                                   0

+++ Stats for stat_display_test_7 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++

stats dist:
  num: 100000, avg: 336840.90, stddev: 6.193e+8, median 895228, min -1073728193, max 1073739280
  -1073728193.. -966354820: #####################################################          5009
   -966354819.. -858981446: ####################################################           5004
   -858981445.. -751608072: ####################################################           4917
   -751608071.. -644234698: #####################################################          5028
   -644234697.. -536861324: ####################################################           4962
   -536861323.. -429487950: #####################################################          5039
   -429487949.. -322114576: ####################################################           4927
   -322114575.. -214741202: #####################################################          5054
   -214741201.. -107367828: #####################################################          5065
   -107367827..       5546: ####################################################           4954
         5547..  107378920: ####################################################           4943
    107378921..  214752294: ###################################################            4900
    214752295..  322125668: ######################################################         5126
    322125669..  429499042: #######################################################        5198
    429499043..  536872416: ####################################################           4988
    536872417..  644245790: ####################################################           4940
    644245791..  751619164: ####################################################           5002
    751619165..  858992538: ####################################################           4928
    858992539..  966365912: #####################################################          5070
    966365913.. 1073739286: ####################################################           4946
================================================================================
1 warning(s)
failure (10 tests failed, 2 tests errored, ran 28 tests)