import org.junit.Test;
public class TestParsingQline extends TestPSTParser {
@Test
public void testCoordinatesCm() throws ParseException {
IPolyline line = (IPolyline)parser.parsePSTCode("\\"+getCommandName()+"(35cm,20cm)(11.12cm,-2cm)").get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(2, line.getNbPoints());
assertEquals(35.*IShape.PPC, line.getPtAt(0).getX(), 0.001);
assertEquals(20.*IShape.PPC*-1., line.getPtAt(0).getY(), 0.001);
assertEquals(11.12*IShape.PPC, line.getPtAt(1).getX(), 0.001);
assertEquals(-2.*IShape.PPC*-1., line.getPtAt(1).getY(), 0.001);
assertTrue(PSTParser.errorLogs().isEmpty());
}