We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebec224 commit f31732fCopy full SHA for f31732f
1 file changed
liquidjava-verifier/src/test/java/liquidjava/rj_language/TestIntegration.java
@@ -0,0 +1,19 @@
1
+package liquidjava.integration;
2
+
3
+import static org.junit.Assert.assertEquals;
4
5
+import org.junit.Test;
6
7
+import liquidjava.rj_language.ast.BinaryExpression;
8
+import liquidjava.rj_language.ast.LiteralInt;
9
+import liquidjava.rj_language.opt.ConstantFolding;
10
+import liquidjava.rj_language.opt.derivation_node.ValDerivationNode;
11
12
+public class TestIntegration {
13
+ @Test
14
+ public void testConstantFoldingIntegration() {
15
+ BinaryExpression expr = new BinaryExpression(new LiteralInt(3), "*", new LiteralInt(4));
16
+ ValDerivationNode result = ConstantFolding.fold(new ValDerivationNode(expr, null));
17
+ assertEquals(new LiteralInt(12), result.getValue());
18
+ }
19
+}
0 commit comments