mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +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 );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void addLong() {
|
||||
rule.test( script, "addLong" );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void addFloat() {
|
||||
rule.test( script, "addFloat", 1F, 3.5F );
|
||||
@ -100,6 +105,13 @@ public class MathOperations {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
@Export
|
||||
static int addLong() {
|
||||
long a = 1L;
|
||||
long b = 3L;
|
||||
return (int)(a + b);
|
||||
}
|
||||
|
||||
@Export
|
||||
static float addFloat( float a, float b ) {
|
||||
return a + b;
|
||||
|
Loading…
x
Reference in New Issue
Block a user