import org.junit.Test;
public class TestParsingQdisk extends TestPSTParser {
@Test
public void testCoordinatesCm() throws ParseException {
ICircle cir = (ICircle)parser.parsePSTCode("\\"+getCommandName()+"(35cm,20cm){.5cm}").get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(35.*IShape.PPC-.5*IShape.PPC, cir.getPosition().getX(), 0.001);
assertEquals((20.*IShape.PPC-.5*IShape.PPC)*-1., cir.getPosition().getY(), 0.001);
assertEquals(.5*IShape.PPC*2., cir.getWidth(), 0.0000001);
assertEquals(.5*IShape.PPC*2., cir.getHeight(), 0.0000001);
assertTrue(PSTParser.errorLogs().isEmpty());
}