Skip to content

Commit 50218de

Browse files
committed
ok to test Number.MAX_VALUE and Number.MIN_VALUE in IE
1 parent f18f10e commit 50218de

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/jasmine/tests/lib_test.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1558,13 +1558,14 @@ describe('Test lib.js:', function() {
15581558

15591559
describe('cleanNumber', function() {
15601560
it('should return finite numbers untouched', function() {
1561-
var vals = [0, 1, 2, 1234.567, -1, -100, -999.999];
1561+
var vals = [
1562+
0, 1, 2, 1234.567, -1, -100, -999.999,
1563+
Number.MAX_VALUE, Number.MIN_VALUE,
1564+
-Number.MAX_VALUE, -Number.MIN_VALUE
1565+
];
15621566

15631567
if(!Lib.isIE()) {
1564-
vals.push(
1565-
Number.MAX_VALUE, Number.MIN_VALUE, Number.EPSILON,
1566-
-Number.MAX_VALUE, -Number.MIN_VALUE, -Number.EPSILON
1567-
);
1568+
vals.push(Number.EPSILON, -Number.EPSILON);
15681569
}
15691570

15701571
vals.forEach(function(v) {

0 commit comments

Comments
 (0)