From acc40e175786e18b75e27389c3e6153ed345f9c7 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Sun, 3 Jul 2022 08:13:45 -0400 Subject: [PATCH] assert.deepStrictEqual --- test/linspace-test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/linspace-test.js b/test/linspace-test.js index 567628d..7db6ad2 100644 --- a/test/linspace-test.js +++ b/test/linspace-test.js @@ -2,7 +2,7 @@ import assert from "assert"; import {linspace} from "../src/index.js"; it("linspace(start, stop)", () => { - assert.deepEqual(linspace(0, 49), [ + assert.deepStrictEqual(linspace(0, 49), [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, @@ -12,14 +12,14 @@ it("linspace(start, stop)", () => { }); it("linspace(start, stop, n)", () => { - assert.deepEqual(linspace(2, 3, 5), [2, 2.25, 2.5, 2.75, 3]); + assert.deepStrictEqual(linspace(2, 3, 5), [2, 2.25, 2.5, 2.75, 3]); }); it("linspace(start, stop, n, false)", () => { - assert.deepEqual(linspace(2, 3, 5, false), [2, 2.2, 2.4, 2.6, 2.8]); + assert.deepStrictEqual(linspace(2, 3, 5, false), [2, 2.2, 2.4, 2.6, 2.8]); }); it("linspace(start, stop, n) descending", () => { - assert.deepEqual(linspace(5, 1, 5), [5, 4, 3, 2, 1]); - assert.deepEqual(linspace(5, 0, 5, false), [5, 4, 3, 2, 1]); + assert.deepStrictEqual(linspace(5, 1, 5), [5, 4, 3, 2, 1]); + assert.deepStrictEqual(linspace(5, 0, 5, false), [5, 4, 3, 2, 1]); });