Permalink
Browse files

Explicitly test the equality of Morphism's.

Previously the equality of morphisms was implicitly tested in other
contexts.
  • Loading branch information...
1 parent c60d285 commit 96f2c3f63e7b024935921911cd0a6e6f66b2c57e @scolobb committed Jun 9, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 sympy/categories/tests/test_baseclasses.py
@@ -32,6 +32,9 @@ def test_morphism():
assert f.components == [f]
assert f != None
+ assert f == f
+ assert f == Morphism(A, B, "f")
+ assert f != g
assert f * g == None
assert f * f == None

0 comments on commit 96f2c3f

Please sign in to comment.