mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-13 21:13:53 +00:00
Fix not operator
(cherry picked from commit 00c7d3a157d8d859ede501d71282e82fba40e37b)
This commit is contained in:
@ -92,6 +92,15 @@ class ExpressionTest extends BaseExpressionTest {
|
||||
checkTestCase("a=0; b=--a; a+b", -2);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testNot() {
|
||||
checkTestCase("!0", 1);
|
||||
checkTestCase("!1", 0);
|
||||
checkTestCase("!2", 0);
|
||||
checkTestCase("!-1", 0);
|
||||
checkTestCase("!-2", 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testErrors() {
|
||||
// test lexer errors
|
||||
|
Reference in New Issue
Block a user