fix(curriculum): use specific chai asserts for euler problems 401-480 (#60636)

This commit is contained in:
Jonathan Fairgrieve
2025-06-02 01:31:03 -07:00
committed by GitHub
parent 7f5e447080
commit 2c3374e43d
5 changed files with 5 additions and 5 deletions

View File

@@ -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());
```

View File

@@ -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`.

View File

@@ -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.

View File

@@ -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`.

View File

@@ -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`.