#12224: Language as parent / Word as element
-----------------------------------------------------------------+----------
       Reporter:  vdelecroix                                     |         
Owner:  vdelecroix
           Type:  enhancement                                    |        
Status:  new       
       Priority:  major                                          |     
Milestone:  sage-5.6  
      Component:  combinatorics                                  |    
Resolution:            
       Keywords:  word, language, symbolic dynamics              |   Work 
issues:            
Report Upstream:  N/A                                            |     
Reviewers:            
        Authors:  Vincent Delecroix                              |     Merged 
in:            
   Dependencies:  #8920, #12230, #12518, #13778, #13956, #13957  |      
Stopgaps:            
-----------------------------------------------------------------+----------

Comment (by slabbe):

 3 (bis). Just to continue on point 3 above, testing {{{sage/combinat}}}
 files gives me three more files having similar doctest errors as the above
 three:

 {{{

 sage-5.6.rc0/devel/sage-language/sage/combinat $ sage -t *

 [...]

 sage -t  "devel/sage-
 language/sage/combinat/languages/finite_word_language.py"
 **********************************************************************
 File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-
 language/sage/combinat/languages/finite_word_language.py", line 47:
     sage: L.list()
 Expected:
     [, a, b, ab, bb, ba, abb, bba, bab, abba, bbab, abbab]
 Got:
     [, a, b, ab, ba, bb, abb, bba, bab, abba, bbab, abbab]
 **********************************************************************
 File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-
 language/sage/combinat/languages/finite_word_language.py", line 53:
     sage: G.list()
 Expected:
     [, a, b, ab, bb, ba, abb, bba, bab, abba, bbab, abbab]
 Got:
     [, a, b, ab, ba, bb, abb, bba, bab, abba, bbab, abbab]
 **********************************************************************
 File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-
 language/sage/combinat/languages/finite_word_language.py", line 348:
     sage: for v in w.language(): print v,
 Expected:
      a b ab bb ba abb bba bab abba bbab abbab
 Got:
      a b ab ba bb abb bba bab abba bbab abbab
 **********************************************************************
 2 items had failures:
    2 of  22 in __main__.example_1
    1 of   6 in __main__.example_14
 ***Test Failed*** 3 failures.
 For whitespace errors, see the file
 /Users/slabbe/.sage//tmp/finite_word_language_11178.py
          [4.7 s]

 [...]

 sage -t  "devel/sage-language/sage/combinat/tableau.py"
 **********************************************************************
 File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-
 language/sage/combinat/tableau.py", line 462:
     sage: Tableau([[1,2],[3,4]]).to_word_by_column()
 Expected:
     word: 3142
 Got:
     3142
 **********************************************************************
 File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-
 language/sage/combinat/tableau.py", line 464:
     sage: Tableau([[1, 4, 6], [2, 5], [3]]).to_word_by_column()
 Expected:
     word: 321546
 Got:
     321546
 **********************************************************************
 File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-
 language/sage/combinat/tableau.py", line 2309:
     sage: word = t.to_word(); word
 Expected:
     word: 4213
 Got:
     4.2.1.3
 **********************************************************************
 2 items had failures:
    2 of   5 in __main__.example_17
    1 of  10 in __main__.example_84
 ***Test Failed*** 3 failures.
 For whitespace errors, see the file
 /Users/slabbe/.sage//tmp/tableau_12194.py
          [11.7 s]

 [...]

 sage -t  "devel/sage-language/sage/combinat/tableau_tuple.py"
 **********************************************************************
 File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-
 language/sage/combinat/tableau_tuple.py", line 603:
     sage:
 TableauTuple([[[1,2],[3,4]],[[5,6,7],[8]],[[9,10],[11],[12]]]).to_word_by_row()
 Expected:
     word: 12,11,9,10,8,5,6,7,3,4,1,2
 Got:
     12.11.9.10.8.5.6.7.3.4.1.2
 **********************************************************************
 File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-
 language/sage/combinat/tableau_tuple.py", line 622:
     sage:
 
TableauTuple([[[1,2],[3,4]],[[5,6,7],[8]],[[9,10],[11],[12]]]).to_word_by_column()
 Expected:
     word: 12,11,9,10,8,5,6,7,3,1,4,2
 Got:
     12.11.9.10.8.5.6.7.3.1.4.2
 **********************************************************************
 2 items had failures:
    1 of   4 in __main__.example_13
    1 of   4 in __main__.example_14
 ***Test Failed*** 2 failures.

 [...]

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t  "devel/sage-
 language/sage/combinat/languages/finite_word_language.py"
         sage -t  "devel/sage-language/sage/combinat/tableau.py"
         sage -t  "devel/sage-language/sage/combinat/tableau_tuple.py"
         sage -t  "devel/sage-language/sage/combinat/words/finite_word.pyx"
         sage -t  "devel/sage-language/sage/combinat/words/morphism.py"
         sage -t  "devel/sage-language/sage/combinat/words/word.py"
 Total time for all tests: 1509.3 seconds

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12224#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to