Search in sources :

Example 1 with NamespacedVariableNode

use of st.gravel.support.compiler.ast.NamespacedVariableNode in project gravel by gravel-st.

the class ParserTest method testParseNamespacedVariable.

@Test
public void testParseNamespacedVariable() {
    final NamespacedVariableNode _node;
    _node = ((NamespacedVariableNode) Parser.factory.source_(" foo.bar.baz ").parseExpression());
    assertEquals((st.gravel.support.jvm.SmalltalkFactory) NamespacedVariableNode.factory, (st.gravel.support.jvm.SmalltalkFactory) _node.factory());
    assertEquals((String) "foo.bar.baz", (String) _node.prettySourceString());
    assertEquals((String[]) new String[] { "foo", "bar", "baz" }, (String[]) _node.path());
}
Also used : NamespacedVariableNode(st.gravel.support.compiler.ast.NamespacedVariableNode) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 NamespacedVariableNode (st.gravel.support.compiler.ast.NamespacedVariableNode)1