Example #1
0
 @Test
 public void testParseVariableDot() {
   final BlockNode _node;
   _node = ((BlockNode) Parser.factory.source_(" [foo. bar] ").parseExpression());
   assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), BlockNode.factory));
   assertEquals((String) "\n[\nfoo.\nbar]", (String) _node.prettySourceString());
 }
Example #2
0
 @Test
 public void testParse2ArgBlockEmpty1() {
   final BlockNode _node;
   _node = ((BlockNode) Parser.factory.source_("[:a :b  | ]").parseExpression());
   assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), BlockNode.factory));
   assertEquals((String) "[:a :b | ]", (String) _node.prettySourceString());
 }