Bug 1913305 - Add test. r=mtigley
[gecko.git] / js / src / tests / test262 / built-ins / Math / SQRT2 / value.js
blobcf06696db0a3541f91feeaea66cce8cb924b3580
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 description: Math.SQRT2 is a numeric value
5 esid: sec-math.sqrt2
6 info: |
7     The Number value for the square root of 2, which is approximately
8     1.4142135623730951.
10     The precision of this approximation is host-defined.
11 ---*/
13 assert.sameValue(typeof Math.SQRT2, 'number');
14 assert.notSameValue(Math.SQRT2, NaN);
16 reportCompare(0, 0);