summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Math/fround/Math.fround_NaN.js
blob: 6b17546e512463fafc02d956ba7909a76e83eb55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (c) 2014 Ryan Lewis. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es6id: 20.2.2.17
author: Ryan Lewis
description: Math.fround should return NaN if called with NaN.
---*/

assert.sameValue(Math.fround(NaN), NaN);

reportCompare(0, 0);