summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Math/trunc/Math.trunc_Infinity.js
blob: 283ede8ae0b57c90fa3e7a1a5f7a224983e6c947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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.35
author: Ryan Lewis
description: Return arg when called with Infinity or -Infinity.
---*/

assert.sameValue(Math.trunc(Infinity), Infinity, 'Math.trunc(Infinity)');
assert.sameValue(Math.trunc(-Infinity), -Infinity, 'Math.trunc(-Infinity)');

reportCompare(0, 0);