From 2c3374e43dca48a20848e9e6041af447112acdbb Mon Sep 17 00:00:00 2001
From: Jonathan Fairgrieve <97122375+FairgrieveCS@users.noreply.github.com>
Date: Mon, 2 Jun 2025 01:31:03 -0700
Subject: [PATCH] fix(curriculum): use specific chai asserts for euler problems
401-480 (#60636)
---
.../problem-419-look-and-say-sequence.md | 2 +-
.../problem-444-the-roundtable-lottery.md | 2 +-
.../project-euler-problems-401-to-480/problem-461-almost-pi.md | 2 +-
.../problem-471-triangle-inscribed-in-ellipse.md | 2 +-
.../problem-480-the-last-question.md | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-419-look-and-say-sequence.md b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-419-look-and-say-sequence.md
index 4143ab36ccb..a52534f2f19 100644
--- a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-419-look-and-say-sequence.md
+++ b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-419-look-and-say-sequence.md
@@ -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());
```
diff --git a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-444-the-roundtable-lottery.md b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-444-the-roundtable-lottery.md
index 9e52d4e52b4..a6c6a130c7d 100644
--- a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-444-the-roundtable-lottery.md
+++ b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-444-the-roundtable-lottery.md
@@ -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`.
diff --git a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-461-almost-pi.md b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-461-almost-pi.md
index 3fd79d09c3e..898c2b91794 100644
--- a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-461-almost-pi.md
+++ b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-461-almost-pi.md
@@ -23,7 +23,7 @@ You are given `almostPi(200)` = 62 + 752 + 892
`almostPi` should be a function.
```js
-assert(typeof almostPi === 'function')
+assert.isFunction(almostPi);
```
`almostPi` should return a number.
diff --git a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-471-triangle-inscribed-in-ellipse.md b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-471-triangle-inscribed-in-ellipse.md
index b779bbda790..dde5f172926 100644
--- a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-471-triangle-inscribed-in-ellipse.md
+++ b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-471-triangle-inscribed-in-ellipse.md
@@ -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`.
diff --git a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-480-the-last-question.md b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-480-the-last-question.md
index fbe75d0ddb7..82df3828551 100644
--- a/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-480-the-last-question.md
+++ b/curriculum/challenges/english/18-project-euler/project-euler-problems-401-to-480/problem-480-the-last-question.md
@@ -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`.