mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-24 16:01:05 -04:00
fix(curriculum): use specific chai asserts for euler problems 401-480 (#60636)
This commit is contained in:
committed by
GitHub
parent
7f5e447080
commit
2c3374e43d
@@ -35,7 +35,7 @@ Find $A(n)$, $B(n)$ and $C(n)$ for $n = {10}^{12}$. Give your answer modulo $2^{
|
||||
`lookAndSaySequence()` should return a string.
|
||||
|
||||
```js
|
||||
assert(typeof lookAndSaySequence() === 'string');
|
||||
assert.isString(lookAndSaySequence());
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ Find $S_{20}({10}^{14})$ and write the answer as a string in scientific notation
|
||||
`roundtableLottery()` should return a string.
|
||||
|
||||
```js
|
||||
assert(typeof roundtableLottery() === 'string');
|
||||
assert.isString(roundtableLottery());
|
||||
```
|
||||
|
||||
`roundtableLottery()` should return the string `1.200856722e263`.
|
||||
|
||||
@@ -23,7 +23,7 @@ You are given `almostPi(200)` = 6<sup>2</sup> + 75<sup>2</sup> + 89<sup>2</sup>
|
||||
`almostPi` should be a function.
|
||||
|
||||
```js
|
||||
assert(typeof almostPi === 'function')
|
||||
assert.isFunction(almostPi);
|
||||
```
|
||||
|
||||
`almostPi` should return a number.
|
||||
|
||||
@@ -31,7 +31,7 @@ For $G(10)$ the answer would have been `2.059722222e1`
|
||||
`triangleInscribedInEllipse()` should return a string.
|
||||
|
||||
```js
|
||||
assert(typeof triangleInscribedInEllipse() === 'string');
|
||||
assert.isString(triangleInscribedInEllipse());
|
||||
```
|
||||
|
||||
`triangleInscribedInEllipse()` should return the string `1.895093981e31`.
|
||||
|
||||
@@ -71,7 +71,7 @@ Give your answer using lowercase characters (no punctuation or space).
|
||||
`euler480()` should return a string.
|
||||
|
||||
```js
|
||||
assert(typeof euler480() === 'string');
|
||||
assert.isString(euler480());
|
||||
```
|
||||
|
||||
`euler480()` should return the string `turnthestarson`.
|
||||
|
||||
Reference in New Issue
Block a user