mirror of https://github.com/01-edu/public.git
17 lines
367 B
JavaScript
17 lines
367 B
JavaScript
Math.min = Math.max = undefined
|
|
// /*/ // ⚡
|
|
export const tests = []
|
|
const t = (f) => tests.push(f)
|
|
|
|
t(() => max(0, -2) === 0)
|
|
t(() => max(-1, 10) === 10)
|
|
t(() => max(-13.2, -222) === -13.2)
|
|
t(() => max(132, 133) === 133)
|
|
|
|
t(() => min(0, -2) === -2)
|
|
t(() => min(-1, 10) === -1)
|
|
t(() => min(-13.2, -222) === -222)
|
|
t(() => min(132, 133) === 132)
|
|
|
|
Object.freeze(tests)
|