import org.junit.Test;
public class TestParsingPswedge extends TestParsingShape {
@Test
public void testAngle1Angle2() throws ParseException {
ICircleArc arc = (ICircleArc)parser.parsePSTCode("\\"+getCommandName()+"{10}{200}{100}").get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(Math.toRadians(200.), arc.getAngleStart(), 0.0000001);
assertEquals(Math.toRadians(100.), arc.getAngleEnd(), 0.0000001);
assertTrue(PSTParser.errorLogs().isEmpty());
arc = (ICircleArc)parser.parsePSTCode("\\"+getCommandName()+"{10}{100}{200}").get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(Math.toRadians(100.), arc.getAngleStart(), 0.0000001);
assertEquals(Math.toRadians(200.), arc.getAngleEnd(), 0.0000001);
assertTrue(PSTParser.errorLogs().isEmpty());
}