From 1d6c8724b9837fcef96e6d1c83ffa38a5a167fb7 Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Mon, 6 Apr 2020 15:02:08 +0200 Subject: [PATCH] LibJS: Fix some tests for Math.min() In some of the tests in Math.min.js, we were testing Math.max() instead of Math.min() --- Libraries/LibJS/Tests/Math.min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibJS/Tests/Math.min.js b/Libraries/LibJS/Tests/Math.min.js index ed505995d4..35b8746ee6 100644 --- a/Libraries/LibJS/Tests/Math.min.js +++ b/Libraries/LibJS/Tests/Math.min.js @@ -3,8 +3,8 @@ try { assert(Math.min(1) === 1); assert(Math.min(2, 1) === 1); assert(Math.min(1, 2, 3) === 1); - assert(isNaN(Math.max(NaN))); - assert(isNaN(Math.max("String", 1))); + assert(isNaN(Math.min(NaN))); + assert(isNaN(Math.min("String", 1))); console.log("PASS"); } catch {