@@ -43,20 +43,20 @@ describe('unexpected-check', function () {
43
43
. and ( 'last item to be greater than or equal to all' , arr ) ;
44
44
} , 'to be valid for all' , {
45
45
generators : [ arrays ] ,
46
- maxIterations : 20 ,
46
+ maxIterations : 150 ,
47
47
maxErrors : 20
48
48
} ) ;
49
49
} , 'to throw' ,
50
- 'Ran 20 iterations and found 11 errors\n' +
50
+ 'Ran 150 iterations and found 13 errors\n' +
51
51
'counterexample:\n' +
52
52
'\n' +
53
- ' Generated input: [ -3 , -2 ]\n' +
53
+ ' Generated input: [ -1 , -2 ]\n' +
54
54
'\n' +
55
- ' expected [ -2 , -3 ] first item to be less than or equal to all [ -3 , -2 ]\n' +
55
+ ' expected [ -1 , -2 ] first item to be less than or equal to all [ -1 , -2 ]\n' +
56
56
'\n' +
57
57
' [\n' +
58
- ' -3, // should be greater than or equal to -2 \n' +
59
- ' -2\n' +
58
+ ' -1, \n' +
59
+ ' -2 // should be greater than or equal to -1 \n' +
60
60
' ]' ) ;
61
61
} ) ;
62
62
@@ -66,7 +66,7 @@ describe('unexpected-check', function () {
66
66
expect ( arr , 'not to contain' , 2 ) ;
67
67
} , 'to be valid for all' , arrays ) ;
68
68
} , 'to throw' ,
69
- 'Ran 24 iterations and found 10 errors\n' +
69
+ 'Ran 62 iterations and found 20 errors\n' +
70
70
'counterexample:\n' +
71
71
'\n' +
72
72
' Generated input: [ 2 ]\n' +
@@ -94,7 +94,7 @@ describe('unexpected-check', function () {
94
94
expect ( items , 'not to contain' , i ) ;
95
95
} , 'to be valid for all' , arrays , g . integer ( { min : - 20 , max : 20 } ) ) ;
96
96
} , 'to throw' ,
97
- 'Ran 9 iterations and found 7 errors\n' +
97
+ 'Ran 10 iterations and found 8 errors\n' +
98
98
'counterexample:\n' +
99
99
'\n' +
100
100
' Generated input: [ 0 ], 0\n' +
@@ -114,17 +114,16 @@ describe('unexpected-check', function () {
114
114
} ) ;
115
115
} , 'to be valid for all' , arrays ) ;
116
116
} , 'to throw' ,
117
- 'Ran 107 iterations and found 20 errors\n' +
117
+ 'Ran 18 iterations and found 5 errors\n' +
118
118
'counterexample:\n' +
119
119
'\n' +
120
- ' Generated input: [ -3, 1 ]\n' +
120
+ ' Generated input: [ 0 ]\n' +
121
121
'\n' +
122
- ' expected [ -3, 1 ]\n' +
122
+ ' expected [ 0 ]\n' +
123
123
' to have items satisfying function (item, i) { expect(item, \'not to be\', i); }\n' +
124
124
'\n' +
125
125
' [\n' +
126
- ' -3,\n' +
127
- ' 1 // should not be 1\n' +
126
+ ' 0 // should not be 0\n' +
128
127
' ]' ) ;
129
128
} ) ;
130
129
@@ -138,20 +137,20 @@ describe('unexpected-check', function () {
138
137
} ) ;
139
138
} , 'to be valid for all' , arrays ) ;
140
139
} , 'to throw' ,
141
- 'Ran 5 iterations and found 4 errors\n' +
140
+ 'Ran 152 iterations and found 20 errors\n' +
142
141
'counterexample:\n' +
143
142
'\n' +
144
- ' Generated input: [ \'( \' ]\n' +
143
+ ' Generated input: [ \'# \' ]\n' +
145
144
'\n' +
146
- ' expected [ \'( \' ] to have items satisfying\n' +
145
+ ' expected [ \'# \' ] to have items satisfying\n' +
147
146
' function (item) {\n' +
148
147
' expect(item, \'not to match\', /[!@#$%^&*()_+]/);\n' +
149
148
' }\n' +
150
149
'\n' +
151
150
' [\n' +
152
- ' \'( \' // should not match /[!@#$%^&*()_+]/\n' +
151
+ ' \'# \' // should not match /[!@#$%^&*()_+]/\n' +
153
152
' //\n' +
154
- ' // ( \n' +
153
+ ' // # \n' +
155
154
' // ^\n' +
156
155
' ]' ) ;
157
156
} ) ;
@@ -164,7 +163,7 @@ describe('unexpected-check', function () {
164
163
} ) . delay ( 1 ) ;
165
164
} , 'to be valid for all' , arrays , g . integer ( { min : - 20 , max : 20 } ) )
166
165
, 'to be rejected with' ,
167
- 'Ran 9 iterations and found 7 errors\n' +
166
+ 'Ran 10 iterations and found 8 errors\n' +
168
167
'counterexample:\n' +
169
168
'\n' +
170
169
' Generated input: [ 0 ], 0\n' +
@@ -177,18 +176,18 @@ describe('unexpected-check', function () {
177
176
} ) ;
178
177
179
178
it ( 'supports a mix between synchronous and asynchronous bodies' , function ( ) {
180
- return expect (
181
- expect ( function ( items , i ) {
179
+ return expect ( function ( ) {
180
+ return expect ( function ( items , i ) {
182
181
if ( i % 2 === 0 ) {
183
182
expect ( items , 'not to contain' , i ) ;
184
183
} else {
185
184
return expect . promise ( function ( ) {
186
185
expect ( items , 'not to contain' , i ) ;
187
186
} ) . delay ( 1 ) ;
188
187
}
189
- } , 'to be valid for all' , arrays , g . integer ( { min : - 20 , max : 20 } ) )
190
- , 'to be rejected with ' ,
191
- 'Ran 9 iterations and found 7 errors\n' +
188
+ } , 'to be valid for all' , arrays , g . integer ( { min : - 20 , max : 20 } ) ) ;
189
+ } , 'to error ' ,
190
+ 'Ran 10 iterations and found 8 errors\n' +
192
191
'counterexample:\n' +
193
192
'\n' +
194
193
' Generated input: [ 0 ], 0\n' +
0 commit comments