michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * +Infinity and Infinity are the same as Number.POSITIVE_INFINITY michael@0: * michael@0: * @path ch08/8.5/S8.5_A12.1.js michael@0: * @description Compare Infinity and +Infinity with Number.POSITIVE_INFINITY michael@0: */ michael@0: michael@0: var p_inf=+Infinity; michael@0: var inf=Infinity; michael@0: michael@0: //CHECK #1 michael@0: if (p_inf!==Number.POSITIVE_INFINITY){ michael@0: $ERROR('#1: +Infinity is the same as Number.POSITIVE_INFINITY'); michael@0: } michael@0: michael@0: //CHECK #2 michael@0: if (inf!==Number.POSITIVE_INFINITY){ michael@0: $ERROR('#2: Infinity is the same as Number.POSITIVE_INFINITY'); michael@0: } michael@0: