From deb8c26c1ce823df094777805850941d4ae90571 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Wed, 21 Aug 2024 18:17:30 -0500 Subject: [PATCH] Convert to Number --- docs/_static/test-c.html | 2 +- docs/_static/test-cp.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_static/test-c.html b/docs/_static/test-c.html index bf77a698..af54b0f9 100644 --- a/docs/_static/test-c.html +++ b/docs/_static/test-c.html @@ -21,7 +21,7 @@ const formattedQuestion = `${p}`.padStart(4, '0'); const func = wasm[`_p${formattedQuestion}`]; if (func === undefined) continue; - const expected = get_js_answer(p); + const expected = Number(get_js_answer(p)); describe(`run test ${p}`, function() { this.timeout(Infinity); it(`should return ${expected}`, async () => { diff --git a/docs/_static/test-cp.html b/docs/_static/test-cp.html index 49264f7f..ce66d87d 100644 --- a/docs/_static/test-cp.html +++ b/docs/_static/test-cp.html @@ -21,7 +21,7 @@ const formattedQuestion = `${p}`.padStart(4, '0'); const func = wasm[`_p${formattedQuestion}`]; if (func === undefined) continue; - const expected = get_js_answer(p); + const expected = Number(get_js_answer(p)); describe(`run test ${p}`, function() { this.timeout(Infinity); it(`should return ${expected}`, async () => {