2425262728293031323334
@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());
2829303132333435363738
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