assertEquals("serialization should produce expected on-spaced result", fmt, s);
}
@Test
public void test_Serialize_assignArray() throws Exception {
PuppetManifest pp = pf.createPuppetManifest();
AssignmentExpression assignment = PPFactory.eINSTANCE.createAssignmentExpression();
assignment.setLeftExpr(createVariable("a"));
LiteralList pplist = PPFactory.eINSTANCE.createLiteralList();
assignment.setRightExpr(pplist);
pplist.getElements().add(createSqString("10"));
pplist.getElements().add(createSqString("20"));
pp.getStatements().add(assignment);
String fmt = "$a = [ '10' , '20' , ]";
String s = serialize(pp);
assertEquals("serialization should produce single spaced result", fmt, s);
}