Test log2 function
use string to test NaN
This commit is contained in:
1 parent
f91e51c28b
commit
8415627731
1 file changed
+1
-1
@@ -75,7 +75,7 @@ describe('ol.math.log2', function () {
|
||||
});
|
||||
|
||||
it('returns the correct value at -1', function () {
|
||||
expect(log2(-1)).to.eql(NaN);
|
||||
expect(log2(-1).toString()).to.eql('NaN');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user