Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2025-01-12 10:21:06 +01:00
Add regression tests to the round Expression function
Dieser Commit ist enthalten in:
Ursprung
4c0b535e6e
Commit
2bdc925b0f
@ -449,4 +449,14 @@ class ExpressionTest extends BaseExpressionTest {
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren