mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Add regression tests to the round Expression function
This commit is contained in:
parent
4c0b535e6e
commit
2bdc925b0f
@ -449,4 +449,14 @@ class ExpressionTest extends BaseExpressionTest {
|
|||||||
assertTrue(e.getMessage().contains("Calculations exceeded time limit"));
|
assertTrue(e.getMessage().contains("Calculations exceeded time limit"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testRound() {
|
||||||
|
checkTestCase("round(1.3)", 1);
|
||||||
|
checkTestCase("round(0.9)", 1);
|
||||||
|
checkTestCase("round(-1.1)", -1);
|
||||||
|
checkTestCase("round(-0.9)", -1);
|
||||||
|
checkTestCase("round(1.5)", 2);
|
||||||
|
checkTestCase("round(-1.5)", -1);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user