source: class PrettyPrinterVisitorTest {
  
    @Rule
    public TemporaryFolder temporaryFolder;
  
    @Test
    public void testParseAndPrintVoidActualParameter() throws Exception {
  
target: 
      // For simplicity, we deliberately chuck away "void" in function actual parameters; this test
      // captures that intent.
  
      final String program = ""
          + "void foo()\n"
          + "{\n"
          + " return 2;\n"
          + "}\n"
          + "void main()\n"
          + "{\n"
          + " foo(void);\n"
          + "}\n";
      final String expected = ""
          + "void foo()\n"
          + "{\n"
          + " return 2;\n"
          + "}\n"
          + "void main()\n"
          + "{\n"
          + " foo();\n"
          + "}\n";
      assertEquals(expected, PrettyPrinterVisitor.prettyPrintAsString(ParseHelper.parse(program
      )));
    }
  
  }