Package org.apache.poi.ss.formula.ptg

Examples of org.apache.poi.ss.formula.ptg.BoolPtg


  }

  public void testTRUE() {
    Ptg[] ptgs = parseFormula("TRUE");
    assertEquals(1, ptgs.length);
    BoolPtg flag  = (BoolPtg) ptgs[0];
    assertEquals(true, flag.getValue());
  }
View Full Code Here


  }

  public void testTRUE() {
    Ptg[] ptgs = parseFormula("TRUE");
    assertEquals(1, ptgs.length);
    BoolPtg flag  = (BoolPtg) ptgs[0];
    assertEquals(true, flag.getValue());
  }
View Full Code Here

  }
  public void testYN() {
    Ptg[] ptgs = parseFormula("IF(TRUE,\"Y\",\"N\")");
    assertEquals(7, ptgs.length);

    BoolPtg flag  = (BoolPtg) ptgs[0];
    AttrPtg funif = (AttrPtg) ptgs[1];
    StringPtg y = (StringPtg) ptgs[2];
    AttrPtg goto1 = (AttrPtg) ptgs[3];
    StringPtg n = (StringPtg) ptgs[4];


    assertEquals(true, flag.getValue());
    assertEquals("Y", y.getValue());
    assertEquals("N", n.getValue());
    assertEquals("IF", funif.toFormulaString());
    assertTrue("tAttrSkip ptg exists", goto1.isSkip());
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.ss.formula.ptg.BoolPtg

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.