Skip to content

Commit

Permalink
add note about testing with equals
Browse files Browse the repository at this point in the history
  • Loading branch information
smichr committed Nov 26, 2024
1 parent 2ebb471 commit 091f47a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sympy/logic/boolalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def equals(self, other):
For two formulas to be equal one must have the all the literals
of the other.
Note: if there is a possibility that self is only a symbol, then
it is better to test as ``BooleanFunction.equals(self, other)``
otherwise the ``Expr.equals`` will return False.
Examples
========
Expand Down

0 comments on commit 091f47a

Please sign in to comment.