public void testPsCustomFreeHandClose() throws ParseException {
IGroup group = parser.parsePSTCode("\\pscustom{\\moveto(0.0,2.64)\\lineto(0.19,2.82)\\curveto(0.285,2.91)(1.49,3.16)(2.6,3.32)"+ //$NON-NLS-1$
"\\curveto(3.71,3.48)(5.625,3.205)(6.43,2.77)\\curveto(7.235,2.335)(8.07,1.135)(8.1,0.37)"+ //$NON-NLS-1$
"\\curveto(8.13,-0.395)(7.64,-1.63)(7.12,-2.1)\\curveto(6.6,-2.57)(5.45,-3.18)(4.82,-3.32)\\closepath}").get(); //$NON-NLS-1$
assertEquals(1, group.size());
IFreehand fh = (IFreehand)group.getShapeAt(0);
assertEquals(7, fh.getNbPoints());
assertEquals(0., fh.getPtAt(0).getX(), 0.001);
assertEquals(-2.64*IShape.PPC, fh.getPtAt(0).getY(), 0.001);
assertEquals(0.19*IShape.PPC, fh.getPtAt(1).getX(), 0.001);
assertEquals(-2.82*IShape.PPC, fh.getPtAt(1).getY(), 0.001);
assertEquals(2.6*IShape.PPC, fh.getPtAt(2).getX(), 0.001);
assertEquals(-3.32*IShape.PPC, fh.getPtAt(2).getY(), 0.001);
assertEquals(6.43*IShape.PPC, fh.getPtAt(3).getX(), 0.001);
assertEquals(-2.77*IShape.PPC, fh.getPtAt(3).getY(), 0.001);
assertEquals(8.1*IShape.PPC, fh.getPtAt(4).getX(), 0.001);
assertEquals(-0.37*IShape.PPC, fh.getPtAt(4).getY(), 0.001);
assertEquals(IFreeHandProp.FreeHandType.CURVES, fh.getType());
assertEquals(0, PSTParser.errorLogs().size());
}