test262/test/built-ins/Math/SQRT1_2/S15.8.1.7_A1.js

17 lines
483 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Math.SQRT1_2 is approximately 0.7071067811865476
es5id: 15.8.1.7_A1
description: Comparing Math.SQRT1_2 with 0.7071067811865476
includes:
- math_precision.js
- math_isequal.js
---*/
// CHECK#1
if (!isEqual(Math.SQRT1_2, 0.7071067811865476)) {
$ERROR('#1: \'Math.SQRT1_2 is not approximatley equal to 0.7071067811865476\'');
}