blob: 37f4a8cefb607b48e6c3c0d4b4143be8b49e6d49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.8.1.7_A1;
* @section: 15.8.1.7;
* @assertion: Math.SQRT1_2 is approximately 0.7071067811865476;
* @description: Comparing Math.SQRT1_2 with 0.7071067811865476;
*/
$INCLUDE("math_precision.js");
$INCLUDE("math_isequal.js");
// CHECK#1
if (!isEqual(Math.SQRT1_2, 0.7071067811865476)) {
$ERROR('#1: \'Math.SQRT1_2 is not approximatley equal to 0.7071067811865476\'');
}
|