Skip to content

Commit

Permalink
Added missing doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvatore Stella committed Feb 14, 2017
1 parent 94a5d1a commit 06000a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/algebras/cluster_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,15 @@ class ClusterAlgebra(Parent, UniqueRepresentation):

@staticmethod
def __classcall__(self, data, **kwargs):
r"""
Preparse input to make it hashable.
EXAMPLES::
sage: A = ClusterAlgebra(['A', 2]); A # indirect doctest
A Cluster Algebra with cluster variables x0, x1 and no coefficients
over Integer Ring
"""
Q = ClusterQuiver(data)
for key in kwargs:
if isinstance(kwargs[key],list):
Expand Down

0 comments on commit 06000a4

Please sign in to comment.