Package net.sf.latexdraw.parsers.ps

Examples of net.sf.latexdraw.parsers.ps.PSValue


import net.sf.latexdraw.parsers.ps.PSValue;

import org.junit.Test;

public class TestPSValueCommand extends TestPSCommand<PSValue> {
  @Override protected PSValue createCmd() { return new PSValue(2.0); }
View Full Code Here


public class TestPSValueCommand extends TestPSCommand<PSValue> {
  @Override protected PSValue createCmd() { return new PSValue(2.0); }

  @Override @Test
  public void testExecuteVal0() throws InvalidFormatPSFunctionException {
    cmd = new PSValue(0.0);
    cmd.execute(dequeue, 0.0);
    assertEquals(0.0,dequeue.peek(),0.0);
    assertEquals(1, dequeue.size());
  }
View Full Code Here

    assertEquals(1, dequeue.size());
  }

  @Override @Test
  public void testExecuteValNeg() throws InvalidFormatPSFunctionException {
    cmd = new PSValue(-10.0);
    cmd.execute(dequeue, 0.0);
    assertEquals(-10.0,dequeue.peek(),0.0);
    assertEquals(1, dequeue.size());
  }
View Full Code Here

    assertEquals(1, dequeue.size());
  }

  @Override @Test
  public void testExecuteValPos() throws InvalidFormatPSFunctionException {
    cmd = new PSValue(10.0);
    cmd.execute(dequeue, 0.0);
    assertEquals(10.0,dequeue.peek(),0.0);
    assertEquals(1, dequeue.size());
  }
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.parsers.ps.PSValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.