Opened 3 years ago

Closed 3 years ago

#28455 closed defect (fixed)

1 doctest failing in src/sage/databases/oeis.py with tag internet

Reported by: Sébastien Labbé Owned by:
Priority: major Milestone: sage-8.9
Component: doctest coverage Keywords:
Cc: Merged in:
Authors: Thierry Monteil Reviewers: Sébastien Labbé
Report Upstream: N/A Work issues:
Branch: 37b97ce (Commits, GitHub, GitLab) Commit: 37b97ce9b9122a72a397f548404d40967b0bd27f
Dependencies: Stopgaps:

Status badges

Description

With sage-8.9.beta9, the command

sage -t --optional=sage,internet src/sage/databases/oeis.py

gives

sage -t --long src/sage/databases/oeis.py
**********************************************************************
File "src/sage/databases/oeis.py", line 90, in sage.databases.oeis
Failed example:
    p.cross_references(fetch=True)                # optional -- internet
Expected:
    0: A000798: Number of different quasi-orders (or topologies, or transitive digraphs) with n labeled elements.
    1: A001035: Number of partially ordered sets ("posets") with n labeled elements (or labeled acyclic transitive digraphs).
    2: A001930: Number of topologies, or transitive digraphs with n unlabeled nodes.
    3: A006057: Number of topologies on n labeled points satisfying axioms T_0-T_4.
    4: A079263: Number of constrained mixed models with n factors.
    5: A079265: Number of antisymmetric transitive binary relations on n unlabeled points.
    6: A263859: Triangle read by rows: T(n,k) (n>=1, k>=0) is the number of posets with n elements and rank k (or depth k+1).
Got:
     0: A000798: Number of different quasi-orders (or topologies, or transitive digraphs) with n labeled elements.
     1: A001035: Number of partially ordered sets ("posets") with n labeled elements (or labeled acyclic transitive digraphs).
     2: A001930: Number of topologies, or transitive digraphs with n unlabeled nodes.
     3: A006057: Number of topologies on n labeled points satisfying axioms T_0-T_4.
     4: A079263: Number of constrained mixed models with n factors.
     5: A079265: Number of antisymmetric transitive binary relations on n unlabeled points.
     6: A263859: Triangle read by rows: T(n,k) (n>=1, k>=0) is the number of posets with n elements and rank k (or depth k+1).
     7: A316978: Number of factorizations of n into factors > 1 with no equivalent primes.
     8: A319559: Number of non-isomorphic T_0 set systems of weight n.
     9: A326939: Number of T_0 sets of subsets of {1..n} that cover all n vertices.
    10: A326943: Number of T_0 sets of subsets of {1..n} that cover all n vertices and are closed under intersection.
    11: A326944: Number of T_0 sets of subsets of {1..n} that cover all n vertices, contain {}, and are closed under intersection.
    12: A326947: BII-numbers of T_0 set-systems.

**********************************************************************
1 item had failures:
   1 of  26 in sage.databases.oeis
    5 webbrowser tests not run
    0 tests not run because we ran out of time
    [266 tests, 1 failure, 62.87 s]
----------------------------------------------------------------------
sage -t src/sage/databases/oeis.py  # 1 doctest failed
----------------------------------------------------------------------

Change History (4)

comment:1 Changed 3 years ago by Thierry Monteil

Branch: u/tmonteil/1_doctest_failing_in_src_sage_databases_oeis_py_with_tag_internet

comment:2 Changed 3 years ago by Thierry Monteil

Authors: Thierry Monteil
Commit: 37b97ce9b9122a72a397f548404d40967b0bd27f
Status: newneeds_review

Since the number of cross-references will keep increasing (which is good), i added some dots to avoid useless updates. With 11 references, there is more than enough to show the feature.


New commits:

37b97ce#28455 : fix oeis doctest.

comment:3 Changed 3 years ago by Sébastien Labbé

Reviewers: Sébastien Labbé
Status: needs_reviewpositive_review

keeping from 0 to 6 would have been enough I think, but let's go with 11.

comment:4 Changed 3 years ago by Volker Braun

Branch: u/tmonteil/1_doctest_failing_in_src_sage_databases_oeis_py_with_tag_internet37b97ce9b9122a72a397f548404d40967b0bd27f
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.