Open ghost opened 9 years ago
The toString() methods of the two classes
org.warthog.generic.formulas.NAryOperator org.warthog.generic.formulas.Not
produce redundant brackets. For example println(Not(And(A, B))) shows up as
~((A & B))
instead of
~(A & B)
Same problem applies to BinaryOperator. I think we could just change the toString() method of Not to override def toString = Formula.NOT + arg ?
override def toString = Formula.NOT + arg
Wouldn't be bad to have some unit tests for the toString() method...
The toString() methods of the two classes
org.warthog.generic.formulas.NAryOperator org.warthog.generic.formulas.Not
produce redundant brackets. For example println(Not(And(A, B))) shows up as
~((A & B))
instead of
~(A & B)