Skip to content

Commit 8057558

Browse files
committed
fix: uncomment testAddition method and ExpressionParser instantiation in ExpressionParserTest
1 parent 1697f25 commit 8057558

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/test/java/ExpressionParserTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44

55
import org.junit.jupiter.api.Test;
66

7+
import mindustrytool.workflow.expressions.ExpressionParser;
8+
79

810
public class ExpressionParserTest {
9-
// ExpressionParser parser = new ExpressionParser();
11+
ExpressionParser parser = new ExpressionParser();
1012

1113
Map<String, Object> variables = Map.of("a", 1, "b", 2);
1214

13-
// @Test
14-
// void testAddition() {
15-
// assertEquals(parser.evaluateAsDouble("1 + 2", variables), 3);
16-
// }
15+
@Test
16+
void testAddition() {
17+
assertEquals(parser.evaluateAsDouble("1 + 2", variables), 3);
18+
}
1719

1820
@Test
1921
void test(){

0 commit comments

Comments
 (0)