sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.39k stars 473 forks source link

1 optional internet oeis doctest failing in combinat/tutorial.py #29237

Closed seblabbe closed 4 years ago

seblabbe commented 4 years ago

With 9.1.beta5:

sage -t --optional=sage,internet src/sage/combinat/tutorial.py
**********************************************************************
File "src/sage/combinat/tutorial.py", line 1732, in sage.combinat.tutorial
Failed example:
    oeis(L)                                       # optional -- internet
Expected:
    0: A000045: Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
    1: A212804: Expansion of (1-x)/(1-x-x^2).
    2: A132636: a(n) = Fibonacci(n) mod n^3.
Got:
    0: A000045: Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
    1: A212804: Expansion of (1-x)/(1-x-x^2).
    2: A324969: Number of unlabeled rooted identity trees with n vertices whose non-leaf terminal subtrees are all different.
**********************************************************************
1 item had failures:
   1 of 245 in sage.combinat.tutorial
    [244 tests, 1 failure, 7.22 s]
----------------------------------------------------------------------
sage -t src/sage/combinat/tutorial.py  # 1 doctest failed
----------------------------------------------------------------------

CC: @sagetrac-tmonteil @tscrim @jm58660

Component: combinatorics

Author: Frédéric Chapoton

Branch/Commit: 91664c6

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/29237

fchapoton commented 4 years ago
comment:2

here it is, please review


New commits:

91664c6fix oeis doctest in tutorial
fchapoton commented 4 years ago

Commit: 91664c6

fchapoton commented 4 years ago

Branch: u/chapoton/29237

fchapoton commented 4 years ago

Author: Frédéric Chapoton

fchapoton commented 4 years ago
comment:3

easy one, please review

tscrim commented 4 years ago
comment:4

LGTM.

tscrim commented 4 years ago

Reviewer: Travis Scrimshaw

vbraun commented 4 years ago

Changed branch from u/chapoton/29237 to 91664c6