Aktueller Stand
This commit is contained in:
8
backend/node_modules/fast-check/lib/esm/arbitrary/falsy.js
generated
vendored
Normal file
8
backend/node_modules/fast-check/lib/esm/arbitrary/falsy.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { BigInt } from '../utils/globals.js';
|
||||
import { constantFrom } from './constantFrom.js';
|
||||
export function falsy(constraints) {
|
||||
if (!constraints || !constraints.withBigInt) {
|
||||
return constantFrom(false, null, undefined, 0, '', NaN);
|
||||
}
|
||||
return constantFrom(false, null, undefined, 0, '', NaN, BigInt(0));
|
||||
}
|
||||
Reference in New Issue
Block a user