Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Math/min/zeros.js

raw
1 // Copyright (C) 2016 The V8 Project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-math.min
6 es6id: 20.2.2.25
7 description: >
8 +0 is considered to be larger than -0
9 info: |
10 Math.min ( value1, value2 , …values )
11
12 The comparison of values to determine the smallest value is done using the
13 Abstract Relational Comparison algorithm except that +0 is considered to be
14 larger than -0.
15 ---*/
16
17 assert.sameValue(Math.min(0, 0), 0, "(0, 0)");
18 assert.sameValue(Math.min(-0, -0), -0, "(-0, -0)");
19 assert.sameValue(Math.min(0, -0), -0, "(0, -0)");
20 assert.sameValue(Math.min(-0, 0), -0, "(-0, 0)");
21 assert.sameValue(Math.min(0, 0, -0), -0, "(0, 0, -0)");