mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
468 B
19 lines
468 B
export const tests = [] |
|
|
|
const testZero = async () => { |
|
return (await processInfo(() => new Promise(resolve => resolve(0)))) === 'Ok!' |
|
} |
|
|
|
const testOddNumber = async () => { |
|
return ( |
|
(await processInfo(() => new Promise(resolve => resolve(1)))) === 'Error!' |
|
) |
|
} |
|
|
|
const testEvenNumber = async () => { |
|
return (await processInfo(() => new Promise(resolve => resolve(4)))) === 'Ok!' |
|
} |
|
|
|
tests.push(testZero, testOddNumber, testEvenNumber) |
|
|
|
Object.freeze(tests)
|
|
|