assertEquals("foo", functionFoo.getName());
}
public void testEmptyMemberFunction() throws Exception {
TranslationUnit unit = parse("class A { void foo() {} };");
ClassDeclaration classA = unit.getChild(0);
assertEquals("A", classA.getName());
FunctionDefinition functionFoo = classA.getChild(0);
assertEquals("foo", functionFoo.getName());
assertEquals(1, functionFoo.getLine());
}