Debian Codegraph @

js/src/tests/test262/built-ins/Math/min/S15.8.2.12_A4.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: The length property of the Math.min method is 2
6 es5id: 15.8.2.12_A4
7 description: Checking if Math.min.length property is defined and equals to 2
8 ---*/
9 assert.sameValue(typeof Math.min, "function", 'The value of `typeof Math.min` is expected to be "function"');
10 assert.notSameValue(typeof Math.min.length, "undefined", 'The value of typeof Math.min.length is not "undefined"');
11 assert.sameValue(Math.min.length, 2, 'The value of Math.min.length is expected to be 2');
12
13 reportCompare(0, 0);