@@ -321,9 +321,9 @@ public async Task CanQueryByRandomIntWithMaxAsync()
321
321
// done next to the conditional operator. Having the cast only on one side is enough for avoiding
322
322
// Firebird complain, so moving the constants on the left side have been put before the order id, in
323
323
// order for these constants to be casted by the driver.
324
- var x = await ( db . Orders . CountAsync ( o => - idMin + o . OrderId < random . Next ( 10 ) ) ) ;
324
+ var x = await ( db . Orders . CountAsync ( o => - idMin + o . OrderId <= random . Next ( 10 ) ) ) ;
325
325
326
- Assert . That ( x , Is . GreaterThan ( 0 ) . And . LessThan ( 10 ) ) ;
326
+ Assert . That ( x , Is . GreaterThan ( 0 ) . And . LessThan ( 11 ) ) ;
327
327
// Next requires support of both floor and rand
328
328
AssertFunctionInSql ( IsFunctionSupported ( "floor" ) ? "random" : "floor" , spy ) ;
329
329
}
@@ -371,7 +371,7 @@ public async Task CanQueryByRandomIntWithMinMaxAsync()
371
371
// done next to the conditional operator. Having the cast only on one side is enough for avoiding
372
372
// Firebird complain, so moving the constants on the left side have been put before the order id, in
373
373
// order for these constants to be casted by the driver.
374
- var x = await ( db . Orders . CountAsync ( o => - idMin + o . OrderId < random . Next ( 1 , 11 ) ) ) ;
374
+ var x = await ( db . Orders . CountAsync ( o => - idMin + o . OrderId < random . Next ( 1 , 11 ) ) ) ;
375
375
376
376
Assert . That ( x , Is . GreaterThan ( 0 ) . And . LessThan ( 10 ) ) ;
377
377
// Next requires support of both floor and rand
0 commit comments