mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
add long tests
This commit is contained in:
parent
cf289fc24c
commit
b578eae1c6
@ -68,6 +68,11 @@ public class MathOperations {
|
|||||||
rule.test( script, "addInt", 1, 3 );
|
rule.test( script, "addInt", 1, 3 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void addLong() {
|
||||||
|
rule.test( script, "addLong" );
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void addFloat() {
|
public void addFloat() {
|
||||||
rule.test( script, "addFloat", 1F, 3.5F );
|
rule.test( script, "addFloat", 1F, 3.5F );
|
||||||
@ -100,6 +105,13 @@ public class MathOperations {
|
|||||||
return a + b;
|
return a + b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static int addLong() {
|
||||||
|
long a = 1L;
|
||||||
|
long b = 3L;
|
||||||
|
return (int)(a + b);
|
||||||
|
}
|
||||||
|
|
||||||
@Export
|
@Export
|
||||||
static float addFloat( float a, float b ) {
|
static float addFloat( float a, float b ) {
|
||||||
return a + b;
|
return a + b;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user