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

Examples of org.jamesii.core.math.parsetree.bool.NotNode


*/
public class TestNotNode extends TestValueNodeAbstract<NotNode, INode> {

  @Override
  protected NotNode getInstance(INode content) {
    return new NotNode(content);
  }
View Full Code Here


  }

  @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

TOP

Related Classes of org.jamesii.core.math.parsetree.bool.NotNode

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.