UNPKG

fast-check

Version:

Property based testing framework for JavaScript (like QuickCheck)

7 lines (6 loc) 384 B
import { buildAlphaNumericPercentArbitrary } from './CharacterRangeArbitraryBuilder.js'; import { stringOf } from '../../stringOf.js'; export function buildUriQueryOrFragmentArbitrary(size) { const others = ['-', '.', '_', '~', '!', '$', '&', "'", '(', ')', '*', '+', ',', ';', '=', ':', '@', '/', '?']; return stringOf(buildAlphaNumericPercentArbitrary(others), { size }); }