Search in sources :

Example 1 with UnaryMethodNode

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

the class ParserTest method testParseUnaryMethod.

@Test
public void testParseUnaryMethod() {
    final UnaryMethodNode _node;
    _node = ((UnaryMethodNode) Parser.factory.parseMethod_("foo self baz. ^bar"));
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), UnaryMethodNode.factory));
    assertEquals((String) "foo\n\tself baz.\n\t^bar", (String) _node.prettySourceString());
}
Also used : UnaryMethodNode(st.gravel.support.compiler.ast.UnaryMethodNode) Test(org.junit.Test)

Aggregations

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