Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #19946: additional doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
cheuberg committed Jan 26, 2016
1 parent 24c153c commit 7918417
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sage/rings/asymptotic/asymptotic_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1412,10 +1412,14 @@ def __pow__(self, exponent, precision=None):
Check that :trac:`19946` is fixed::
sage: A.<n> = AsymptoticRing('QQ^n * n^QQ', SR)
sage: 2^n
sage: e = 2^n; e
2^n
sage: _.parent()
sage: e.parent()
Asymptotic Ring <SR^n * n^SR> over Symbolic Ring
sage: e = A(e); e
2^n
sage: e.parent()
Asymptotic Ring <QQ^n * n^QQ> over Symbolic Ring
"""
if not self.summands:
if exponent == 0:
Expand Down

0 comments on commit 7918417

Please sign in to comment.