Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #31054: 2 internet doctests failing in findstat.py
On Ubuntu 18.04 with `9.3.beta4, Release Date: 2020-12-14` the command {{{ sage -t --optional=sage,internet src/sage/databases/findstat.py }}} gives {{{ sage -t --warn-long 72.7 --random-seed=0 src/sage/databases/findstat.py ********************************************************************** File "src/sage/databases/findstat.py", line 118, in sage.databases.findstat Failed example: r = findstat(Permutations, lambda pi: pi.saliances()[0], depth=2); r # optional -- internet Expected: 0: St000476oMp00099oMp00127 (quality [100, 100]) 1: St001497oMp00119oMp00127 with offset 1 (quality [100, 100]) 2: St000147oMp00027oMp00127 (quality [96, 100]) 3: St000054oMp00064oMp00062 with offset 1 (quality [88, 100]) 4: St000740oMp00062 with offset 1 (quality [87, 100]) ... Got: 0: St000740oMp00066 with offset 1 (quality [100, 100]) 1: St000476oMp00099oMp00127 (quality [100, 100]) 2: St001497oMp00119oMp00127 with offset 1 (quality [100, 100]) 3: St000147oMp00027oMp00127 (quality [96, 100]) 4: St000054oMp00066oMp00149 with offset 1 (quality [89, 100]) 5: St000141oMp00025oMp00127 (quality [87, 100]) 6: St001291oMp00127 with offset 1 (quality [87, 86]) 7: St000051oMp00061oMp00069 (quality [87, 86]) 8: St000316oMp00025oMp00127 (quality [87, 86]) 9: St000653oMp00129oMp00127 (quality [87, 86]) 10: St001184oMp00127oMp00064 with offset 1 (quality [87, 86]) 11: St001227oMp00028oMp00127 (quality [87, 86]) 12: St001480oMp00032oMp00127 (quality [87, 86]) 13: St000066oMp00063oMp00149 with offset 1 (quality [54, 86]) 14: St000840oMp00146oMp00127 (quality [18, 86]) 15: St000199oMp00063 with offset 1 (quality [15, 71]) 16: St000193oMp00004oMp00063 with offset 1 (quality [15, 71]) 17: St000200oMp00063oMp00062 with offset 1 (quality [15, 71]) ********************************************************************** File "src/sage/databases/findstat.py", line 129, in sage.databases.findstat Failed example: r[4].info() # optional -- internet Expected: after adding 1 to every value and applying Mp00062: Lehmer-code to major-code bijection: Permutations -> Permutations to the objects (see `.compound_map()` for details) <BLANKLINE> your input matches St000740: The last entry of a permutation. <BLANKLINE> among the values you sent, 87 percent are actually in the database, among the distinct values you sent, 100 percent are actually in the database Got: after adding 1 to every value and applying Mp00149: Lehmer code rotation: Permutations -> Permutations Mp00066: inverse: Permutations -> Permutations to the objects (see `.compound_map()` for details) <BLANKLINE> your input matches St000054: The first entry of the permutation. <BLANKLINE> among the values you sent, 89 percent are actually in the database, among the distinct values you sent, 100 percent are actually in the database ********************************************************************** 1 item had failures: 2 of 16 in sage.databases.findstat [392 tests, 2 failures, 42.52 s] ---------------------------------------------------------------------- sage -t --warn-long 72.7 --random-seed=0 src/sage/databases/findstat.py # 2 doctests failed ---------------------------------------------------------------------- }}} URL: https://trac.sagemath.org/31054 Reported by: slabbe Ticket author(s): Martin Rubey Reviewer(s): Sébastien Labbé
- Loading branch information