Skip to content

Commit

Permalink
sagemathgh-39489: fix several oeis related doctests
Browse files Browse the repository at this point in the history
by using ... to make the doctests more robusts

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.

URL: sagemath#39489
Reported by: Frédéric Chapoton
Reviewer(s):
  • Loading branch information
Release Manager committed Feb 11, 2025
2 parents 5d61ca4 + f7438fc commit 8081c7c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tarball=configure-VERSION.tar.gz
sha1=db7e875cd888f974f7de2c038b2ae75ea5a31b1b
sha256=c905a38a83d6f718258cab25cb643c574fdb600016605c5e252584271bf6ac53
sha1=fb58bd837be257cd014904729657f46aebece6f2
sha256=e7c707399bbcff62df9ea8096c73807a1ecc408e9514efd1e063cb7dc571a93f
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
00c302e55c156a7dd678229ff976ed90ce3d5161
ca45c981479f6e1efa9ee4d164f82a37854605ca
4 changes: 1 addition & 3 deletions src/doc/en/developer/coding_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1308,9 +1308,7 @@ framework. Here is a comprehensive list:
For lines that require an internet connection::

sage: oeis(60843) # optional - internet
A060843: Busy Beaver problem: a(n) = maximal number of steps that an
n-state Turing machine can make on an initially blank tape before
eventually halting.
A060843: ...

- **known bugs:** For lines that describe known bugs, you can use ``# optional - bug``,
although ``# known bug`` is preferred.
Expand Down
3 changes: 1 addition & 2 deletions src/sage/combinat/quickref.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
Integer Sequences::
sage: s = oeis([1,3,19,211]); s # optional - internet
0: A000275: Coefficients of a Bessel function (reciprocal of J_0(z));
also pairs of permutations with rise/rise forbidden.
0: A000275: ...
sage: s[0].programs() # optional - internet
[('maple', ...),
('mathematica', ...),
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/species/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def SimpleGraphSpecies():
sage: seq = S.isotype_generating_series().counts(6)[1:] # needs sage.modules
sage: oeis(seq)[0] # optional - internet # needs sage.modules
A000088: Number of graphs on n unlabeled nodes.
A000088: ...
::
Expand Down
4 changes: 2 additions & 2 deletions src/sage/rings/lazy_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1482,8 +1482,8 @@ def define(self, s):
sage: f
1 + t + t^2 + 2*t^3 + 6*t^4 + 23*t^5 + 104*t^6 + O(t^7)
sage: oeis(f[1:20]) # optional - internet
0: A030266: Shifts left under COMPOSE transform with itself.
1: A110447: Permutations containing 3241 patterns only as part of 35241 patterns.
0: A030266: ...
1: A110447: ...
The following can only work for power series, where we have a
minimal valuation of `0`::
Expand Down

0 comments on commit 8081c7c

Please sign in to comment.