Skip to content

Commit

Permalink
Adding a test for the improved uninitialized series.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Sep 10, 2023
1 parent cfd2dfe commit 72e15b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/data_structures/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,15 @@ def is_uninitialized(self):
sage: C = Stream_uninitialized(0)
sage: C.is_uninitialized()
True
A more subtle uninitialized series::
sage: L.<z> = LazyPowerSeriesRing(QQ)
sage: T = L.undefined(1)
sage: D = L.undefined(0)
sage: T.define(z * exp(T) * D)
sage: T._coeff_stream.is_uninitialized()
True
"""
if self._target is None:
return True
Expand Down

0 comments on commit 72e15b6

Please sign in to comment.