mirror of https://github.com/01-edu/public.git
root
1 year ago
1 changed files with 15 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||||
|
export const tests = [] |
||||||
|
const t = (f) => tests.push(f) |
||||||
|
|
||||||
|
t(() => typeof less === 'function') |
||||||
|
t(() => less.length === 1) |
||||||
|
|
||||||
|
t(() => less(5) === 4) |
||||||
|
t(() => less(1) === 0) |
||||||
|
t(() => less(0) === -1) |
||||||
|
t(() => less(-1) === -2) |
||||||
|
|
||||||
|
const rand = Math.random() |
||||||
|
t(() => less(rand) === rand - 1) |
||||||
|
|
||||||
|
Object.freeze(tests) |
Loading…
Reference in new issue