MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / range

Function range

javascript/selenium-webdriver/project_bidi_schema_test.mjs:227–230  ·  view source on GitHub ↗
(min, max, inclusive = true)

Source from the content-addressed store, hash-verified

225 describe('numeric bounds', () => {
226 const num = (v) => ({ Type: 'literal', Value: v, Unwrapped: false, IsFloat: true })
227 const range = (min, max, inclusive = true) => ({
228 Type: 'range',
229 Value: { Inclusive: inclusive, Min: lit(min), Max: lit(max) },
230 })
231 const op = (type, value) => ({ Type: type, Value: num(value) })
232 const fieldType = (type, extra = {}) =>
233 projectSchema([group('x.R', [{ ...field('n', type), ...extra }])], {}).types['x.R'].fields[0].type

Calls 1

litFunction · 0.70