import org.junit.Test;
public class TestParsingPsgrid extends TestPSTParser {
@Test
public void testGridXUnit() throws ParseException {
IGrid grid = (IGrid)parser.parsePSTCode("\\"+getCommandName()+"[xunit=20in]" +getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(1., grid.getUnit(), 0.00001);
grid = (IGrid)parser.parsePSTCode("\\"+getCommandName()+"[xunit=0.3]" +getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(1., grid.getUnit(), 0.00001);
assertTrue(PSTParser.errorLogs().isEmpty());
}