1
0
Fork 0

Work around solaris integer / float comparison fault

This commit is contained in:
Wilfried Goesgens 2016-06-06 10:28:52 +02:00
parent 9a209d899e
commit 9fa9d49102
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ function ahuacatlNumericFunctionsTestSuite () {
if (typeof(b) === 'number') {
b = b.toPrecision(8);
}
if (((a === 0) && (b === 0.0))||
((b === 0) && (a === 0.0))) {
return;
}
assertEqual(a, b);
}