diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/builtins/Math/Math.min.js')
-rw-r--r-- | Userland/Libraries/LibJS/Tests/builtins/Math/Math.min.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Math/Math.min.js b/Userland/Libraries/LibJS/Tests/builtins/Math/Math.min.js index fedfcabe27..05d0807b47 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Math/Math.min.js +++ b/Userland/Libraries/LibJS/Tests/builtins/Math/Math.min.js @@ -4,6 +4,8 @@ test("basic functionality", () => { expect(Math.min(1)).toBe(1); expect(Math.min(2, 1)).toBe(1); expect(Math.min(1, 2, 3)).toBe(1); + expect(Math.min(-0, 0)).toBe(-0); + expect(Math.min(0, -0)).toBe(-0); expect(Math.min(NaN)).toBeNaN(); expect(Math.min("String", 1)).toBeNaN(); }); |