mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
more math API tests
This commit is contained in:
parent
c64c620a38
commit
c15bea7d3d
@ -54,6 +54,11 @@ public class MathAPI extends AbstractBaseTest {
|
|||||||
addParam( list, script, "exp1" );
|
addParam( list, script, "exp1" );
|
||||||
addParam( list, script, "log1" );
|
addParam( list, script, "log1" );
|
||||||
addParam( list, script, "log10" );
|
addParam( list, script, "log10" );
|
||||||
|
addParam( list, script, "cbrt8" );
|
||||||
|
addParam( list, script, "IEEEremainder" );
|
||||||
|
addParam( list, script, "ceil8_5" );
|
||||||
|
addParam( list, script, "floor8_5" );
|
||||||
|
addParam( list, script, "rint8_5" );
|
||||||
}
|
}
|
||||||
rule.setTestParameters( list );
|
rule.setTestParameters( list );
|
||||||
return list;
|
return list;
|
||||||
@ -125,5 +130,30 @@ public class MathAPI extends AbstractBaseTest {
|
|||||||
static double sqrt() {
|
static double sqrt() {
|
||||||
return Math.sqrt( 6.25 );
|
return Math.sqrt( 6.25 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double cbrt8() {
|
||||||
|
return Math.cbrt( 8 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double IEEEremainder() {
|
||||||
|
return Math.IEEEremainder( 11, 3 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double ceil8_5() {
|
||||||
|
return Math.ceil( 8.5 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double floor8_5() {
|
||||||
|
return Math.floor( 8.5 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double rint8_5() {
|
||||||
|
return Math.rint( 8.5 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user