6970717273747576777879
// Children of n1. NegativeOpNode n3 = new NegativeOpNode(); n1.addChild(x); n1.addChild(n3); // Child of n3. n3.addChild(x); // Children of n2. NegativeOpNode n4 = new NegativeOpNode(); n2.addChild(n4); n2.addChild(x); // Child of n4.
7677787980818283848586
NegativeOpNode n4 = new NegativeOpNode(); n2.addChild(n4); n2.addChild(x); // Child of n4. MinusOpNode n5 = new MinusOpNode(); n4.addChild(n5); // Children of n5. n5.addChild(x); n5.addChild(x); assertEquals("$x - -$x - (-($x - $x) - $x)", n0.toSourceString());