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());
}
Aggregations