add long tests

This commit is contained in:
Volker Berlin 2017-04-11 17:59:34 +02:00
parent cf289fc24c
commit b578eae1c6

View File

@ -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;