You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: generator/src/main/java/com/scottlogic/deg/generator/generation/fieldvaluesources/IntegerFieldValueSource.java
Copy file name to clipboardExpand all lines: generator/src/test/java/com/scottlogic/deg/generator/cucumber/GreaterThan.feature
+33-29Lines changed: 33 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -152,19 +152,20 @@ Scenario: greaterThan run against a non contradicting not greaterThan should be
152
152
| 4 |
153
153
| 5 |
154
154
155
+
@ignore #594 - Reverse order of value generation when only upper-bound operators are provided
155
156
Scenario: not greaterThan run against a non contradicting not greaterThan should be successful (not greaterThan 5 AND not greaterThan 4)
156
157
Given foo is anything but greater than 5
157
158
And foo is anything but greater than 4
158
159
And foo is anything but null
159
160
And foo is of type "integer"
160
161
And the generator can generate at most 5 rows
161
162
Then the following data should be generated:
162
-
| foo|
163
-
| -100000000000000000000 |
164
-
| -99999999999999999999 |
165
-
| -99999999999999999998 |
166
-
| -99999999999999999997 |
167
-
| -99999999999999999996 |
163
+
| foo |
164
+
| 3 |
165
+
| 2 |
166
+
| 1 |
167
+
| 0 |
168
+
| -1 |
168
169
169
170
Scenario: greaterThan run against a contradicting not greaterThan should only only generate string, temporal and null (greaterThan 2 AND not greaterThan 2)
170
171
Given foo is greater than 2
@@ -200,19 +201,20 @@ Scenario: greaterThan run against a non contradicting not greaterThanOrEqualTo s
200
201
| 3 |
201
202
| 4 |
202
203
204
+
@ignore #594 - Reverse order of value generation when only upper-bound operators are provided
203
205
Scenario: not greaterThan run against a non contradicting not greaterThanOrEqualTo should be successful (not greaterThan 5 AND not greaterThanOrEqualTo 4)
204
206
Given foo is anything but greater than 5
205
207
And foo is anything but greater than or equal to 4
206
208
And foo is of type "integer"
207
209
And foo is anything but null
208
210
And the generator can generate at most 5 rows
209
211
Then the following data should be generated:
210
-
| foo|
211
-
| -100000000000000000000 |
212
-
| -99999999999999999999 |
213
-
| -99999999999999999998 |
214
-
| -99999999999999999997 |
215
-
| -99999999999999999996 |
212
+
| foo |
213
+
| 4 |
214
+
| 3 |
215
+
| 2 |
216
+
| 1 |
217
+
| 0 |
216
218
217
219
Scenario: greaterThan run against a contradicting not greaterThan should only only generate string, temporal and null (greaterThan 2 AND not greaterThanOrEqualTo 3)
218
220
Given foo is greater than 2
@@ -247,19 +249,20 @@ Scenario: greaterThan run against a non contradicting not lessThan should be suc
247
249
| 5 |
248
250
| 6 |
249
251
252
+
@ignore #594 - Reverse order of value generation when only upper-bound operators are provided
250
253
Scenario: not greaterThan run against a non contradicting lessThan should be successful (not greaterThan 4 AND lessThan 2)
251
254
Given foo is anything but greater than 4
252
255
And foo is less than 2
253
256
And foo is of type "integer"
254
257
And foo is anything but null
255
258
And the generator can generate at most 5 rows
256
259
Then the following data should be generated:
257
-
| foo|
258
-
| -100000000000000000000 |
259
-
| -99999999999999999999 |
260
-
| -99999999999999999998 |
261
-
| -99999999999999999997 |
262
-
| -99999999999999999996 |
260
+
| foo |
261
+
| 1 |
262
+
| 0 |
263
+
| -1 |
264
+
| -2 |
265
+
| -3 |
263
266
264
267
Scenario: not greaterThan run against a non contradicting not lessThan should be successful (not greaterThan 5 AND not lessThan 4)
265
268
Given foo is anything but greater than 5
@@ -314,7 +317,7 @@ Scenario: greaterThan run against a non contradicting not lessThanOrEqualTo shou
314
317
| 6 |
315
318
| 7 |
316
319
317
-
@ignore #594 - Reverse order of value generation when only upper-bound operators are provided
320
+
@ignore #594 - Reverse order of value generation when only upper-bound operators are provided
318
321
Scenario: not greaterThan run against a non contradicting lessThanOrEqualTo should be successful (not greaterThan 4 AND lessThanOrEqualTo 2)
319
322
Given foo is anything but greater than 4
320
323
And foo is less than or equal to 2
@@ -358,7 +361,7 @@ Scenario: not greaterThan run against a contradicting not lessThanOrEqualTo shou
358
361
359
362
360
363
#granularTo
361
-
Scenario: greaterThan run against a non contradicting granularTo should be successful (greaterThan 2 AND granularTo 1)
364
+
Scenario: greaterThan run against a non contradicting granularTo should be successful (greaterThan 2 AND granularTo 0.1)
362
365
Given foo is greater than 2
363
366
And foo is granular to 0.1
364
367
And foo is anything but null
@@ -372,19 +375,20 @@ Scenario: greaterThan run against a non contradicting granularTo should be succe
372
375
| 2.4 |
373
376
| 2.5 |
374
377
375
-
@ignore #594
376
-
Scenario: not greaterThan run against a non contradicting granularTo should be successful (not greaterThan 4 AND granularTo 1)
378
+
@ignore #594 - Reverse order of value generation when only upper-bound operators are provided
379
+
Scenario: not greaterThan run against a non contradicting granularTo should be successful (not greaterThan 4 AND granularTo 0.1)
377
380
Given foo is anything but greater than 4
378
-
And foo is of type "integer"
381
+
And foo is granular to 0.1
379
382
And foo is anything but null
383
+
And foo is of type "decimal"
380
384
And the generator can generate at most 5 rows
381
385
Then the following data should be generated:
382
-
| foo|
383
-
| 4 |
384
-
| 3 |
385
-
| 2 |
386
-
| 1 |
387
-
| 0 |
386
+
| foo |
387
+
| 3.9 |
388
+
| 3.8 |
389
+
| 3.7 |
390
+
| 3.6 |
391
+
| 3.5 |
388
392
389
393
#after
390
394
Scenario: greaterThan run against a non contradicting after should be successful (greaterThan 1 AND after 2019-01-01T00:00:00.00)
0 commit comments