answer
para os seguintes intervalos: 1-3
- "baixo" 4-6
- "Mid" 7-9
- Nota "Alta" case
para cada número no intervalo. sequentialSizes(1)
deve retornar "Low"
testString: 'assert(sequentialSizes(1) === "Low", "sequentialSizes(1)
should return "Low"");'
- text: sequentialSizes(2)
deve retornar "Low"
testString: 'assert(sequentialSizes(2) === "Low", "sequentialSizes(2)
should return "Low"");'
- text: sequentialSizes(3)
deve retornar "Low"
testString: 'assert(sequentialSizes(3) === "Low", "sequentialSizes(3)
should return "Low"");'
- text: sequentialSizes(4)
deve retornar "Mid"
testString: 'assert(sequentialSizes(4) === "Mid", "sequentialSizes(4)
should return "Mid"");'
- text: sequentialSizes(5)
deve retornar "Mid"
testString: 'assert(sequentialSizes(5) === "Mid", "sequentialSizes(5)
should return "Mid"");'
- text: sequentialSizes(6)
deve retornar "Mid"
testString: 'assert(sequentialSizes(6) === "Mid", "sequentialSizes(6)
should return "Mid"");'
- text: sequentialSizes(7)
deve retornar "High"
testString: 'assert(sequentialSizes(7) === "High", "sequentialSizes(7)
should return "High"");'
- text: sequentialSizes(8)
deve retornar "High"
testString: 'assert(sequentialSizes(8) === "High", "sequentialSizes(8)
should return "High"");'
- text: sequentialSizes(9)
deve retornar "High"
testString: 'assert(sequentialSizes(9) === "High", "sequentialSizes(9)
should return "High"");'
- text: Você não deve usar nenhuma instrução if
ou else
testString: 'assert(!/else/g.test(code) || !/if/g.test(code), "You should not use any if
or else
statements");'
- text: Você deve ter nove declarações de case
testString: 'assert(code.match(/case/g).length === 9, "You should have nine case
statements");'
```