File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ public SyntheticSourceExample example(int maxValues) {
220
220
221
221
var textArray = values .stream ().map (Value ::text ).toList ();
222
222
223
- var blockExpectedList = values .stream ().map (Value ::tokenCount ).filter (Objects ::nonNull ).toList ();
223
+ var blockExpectedList = values .stream ().map (Value ::tokenCount ).filter (Objects ::nonNull ).sorted (). toList ();
224
224
var blockExpected = blockExpectedList .size () == 1 ? blockExpectedList .get (0 ) : blockExpectedList ;
225
225
226
226
return new SyntheticSourceExample (textArray , textArray , blockExpected , this ::mapping );
@@ -230,7 +230,7 @@ private record Value(String text, Integer tokenCount) {}
230
230
231
231
private Value generateValue () {
232
232
if (rarely ()) {
233
- return new Value (null , null );
233
+ return new Value (null , nullValue );
234
234
}
235
235
236
236
var text = randomList (0 , 10 , () -> randomAlphaOfLengthBetween (0 , 10 )).stream ().collect (Collectors .joining (" " ));
You can’t perform that action at this time.
0 commit comments