mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
more Math function tests
This commit is contained in:
parent
ed1b40f3a7
commit
7a7377a7ae
@ -46,6 +46,14 @@ public class MathAPI extends AbstractBaseTest {
|
|||||||
addParam( list, script, "sinPI" );
|
addParam( list, script, "sinPI" );
|
||||||
addParam( list, script, "cos0" );
|
addParam( list, script, "cos0" );
|
||||||
addParam( list, script, "tan0" );
|
addParam( list, script, "tan0" );
|
||||||
|
addParam( list, script, "asin1" );
|
||||||
|
addParam( list, script, "acos1" );
|
||||||
|
addParam( list, script, "atan1" );
|
||||||
|
addParam( list, script, "toRadians90" );
|
||||||
|
addParam( list, script, "toDegrees1" );
|
||||||
|
addParam( list, script, "exp1" );
|
||||||
|
addParam( list, script, "log1" );
|
||||||
|
addParam( list, script, "log10" );
|
||||||
}
|
}
|
||||||
rule.setTestParameters( list );
|
rule.setTestParameters( list );
|
||||||
return list;
|
return list;
|
||||||
@ -72,5 +80,50 @@ public class MathAPI extends AbstractBaseTest {
|
|||||||
static double tan0() {
|
static double tan0() {
|
||||||
return Math.tan( 0 );
|
return Math.tan( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double asin1() {
|
||||||
|
return Math.asin( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double acos1() {
|
||||||
|
return Math.acos( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double atan1() {
|
||||||
|
return Math.atan( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double toRadians90() {
|
||||||
|
return Math.toRadians( 90 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double toDegrees1() {
|
||||||
|
return Math.toDegrees( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double exp1() {
|
||||||
|
return Math.exp( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double log1() {
|
||||||
|
return Math.log( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double log10() {
|
||||||
|
return Math.log10( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static double sqrt() {
|
||||||
|
return Math.sqrt( 6.25 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user