mirror of
https://codeberg.org/ProgramSnail/truffle-lama.git
synced 2025-12-05 22:38:43 +00:00
18 lines
491 B
Java
18 lines
491 B
Java
|
|
import com.oracle.truffle.api.CallTarget;
|
||
|
|
|
||
|
|
import org.junit.Test;
|
||
|
|
import org.programsnail.truffle_lama.nodes.LamaExpressionNode;
|
||
|
|
import org.programsnail.truffle_lama.nodes.LamaRootNode;
|
||
|
|
|
||
|
|
public class BasicNodesTest {
|
||
|
|
@Test
|
||
|
|
public void basic_test() {
|
||
|
|
LamaExpressionNode exprNode = null; // TODO
|
||
|
|
var rootNode = new LamaRootNode(exprNode);
|
||
|
|
CallTarget callTarget = rootNode.getCallTarget();
|
||
|
|
var result = callTarget.call();
|
||
|
|
|
||
|
|
// TODO: check
|
||
|
|
}
|
||
|
|
}
|