Package org.jamesii.core.math.parsetree.bool

Examples of org.jamesii.core.math.parsetree.bool.NotNode.calc()


  @Override
  public void testCalc() {

    NotNode n = getInstance(getA(1));

    ValueNode<Boolean> res = n.calc(null);
    assertTrue(res.getValue());

    NotNode n2 = new NotNode(new NotNode(new ValueNode<>(false)));
    res = n2.calc(null);
    assertTrue(!res.getValue());
View Full Code Here


    ValueNode<Boolean> res = n.calc(null);
    assertTrue(res.getValue());

    NotNode n2 = new NotNode(new NotNode(new ValueNode<>(false)));
    res = n2.calc(null);
    assertTrue(!res.getValue());

  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.