1 | | 5 (bis). Continuing point above (testing doctests in the clean sage-main branch of sage-5.6.rc0 to see how the old behavior is changed). For now, I tested only {{{sage/combinat}}} folder. All tests pass on many of them. I get errors on 28 files and time out on 3 files. See below for the list of files. |
2 | | |
3 | | Below, I put some samples of failing doctests that will break my code and code of other users. These must be fixed. I can't see an argument for removing a working method from Sage... |
4 | | |
5 | | {{{ |
6 | | ~/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat $ sage -t * |
7 | | |
8 | | [...] |
9 | | |
10 | | ---------------------------------------------------------------------- |
11 | | The following tests failed: |
12 | | |
13 | | |
14 | | sage -t "devel/sage-main/sage/combinat/debruijn_sequence.pyx" |
15 | | sage -t "devel/sage-main/sage/combinat/e_one_star.py" |
16 | | sage -t "devel/sage-main/sage/combinat/free_module.py" |
17 | | sage -t "devel/sage-main/sage/combinat/iet/constructors.py" |
18 | | sage -t "devel/sage-main/sage/combinat/iet/labelled.py" |
19 | | sage -t "devel/sage-main/sage/combinat/iet/reduced.py" |
20 | | sage -t "devel/sage-main/sage/combinat/iet/template.py" |
21 | | sage -t "devel/sage-main/sage/combinat/lyndon_word.py" |
22 | | sage -t "devel/sage-main/sage/combinat/ribbon.py" |
23 | | sage -t "devel/sage-main/sage/combinat/ribbon_tableau.py" |
24 | | sage -t "devel/sage-main/sage/combinat/sf/ns_macdonald.py" |
25 | | sage -t "devel/sage-main/sage/combinat/skew_tableau.py" |
26 | | sage -t "devel/sage-main/sage/combinat/tableau.py" |
27 | | sage -t "devel/sage-main/sage/combinat/tableau_tuple.py" |
28 | | sage -t "devel/sage-main/sage/combinat/words/abstract_word.py" |
29 | | sage -t "devel/sage-main/sage/combinat/words/alphabet.py" # Time out |
30 | | sage -t "devel/sage-main/sage/combinat/words/finite_word.py" |
31 | | sage -t "devel/sage-main/sage/combinat/words/infinite_word.py" |
32 | | sage -t "devel/sage-main/sage/combinat/words/morphism.py" # Time out |
33 | | sage -t "devel/sage-main/sage/combinat/words/paths.py" |
34 | | sage -t "devel/sage-main/sage/combinat/words/shuffle_product.py" |
35 | | sage -t "devel/sage-main/sage/combinat/words/suffix_trees.py" |
36 | | sage -t "devel/sage-main/sage/combinat/words/word.py" |
37 | | sage -t "devel/sage-main/sage/combinat/words/word_datatypes.pyx" |
38 | | sage -t "devel/sage-main/sage/combinat/words/word_generators.py" # Time out |
39 | | sage -t "devel/sage-main/sage/combinat/words/word_infinite_datatypes.py" |
40 | | sage -t "devel/sage-main/sage/combinat/words/word_options.py" |
41 | | sage -t "devel/sage-main/sage/combinat/words/words.py" |
42 | | Total time for all tests: 2640.3 seconds |
43 | | }}} |
44 | | |
45 | | |
46 | | |
47 | | {{{ |
48 | | sage -t "devel/sage-main/sage/combinat/debruijn_sequence.pyx" |
49 | | ********************************************************************** |
50 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/debruijn_sequence.pyx", line 18: |
51 | | sage: print Word(seq).string_rep() |
52 | | Exception raised: |
53 | | Traceback (most recent call last): |
54 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
55 | | self.run_one_example(test, example, filename, compileflags) |
56 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
57 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
58 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
59 | | compileflags, 1) in test.globs |
60 | | File "<doctest __main__.example_0[4]>", line 1, in <module> |
61 | | print Word(seq).string_rep()###line 18: |
62 | | sage: print Word(seq).string_rep() |
63 | | File "element.pyx", line 332, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:3527) |
64 | | File "misc.pyx", line 204, in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1488) |
65 | | AttributeError: 'sage.combinat.words.word_datatypes.FiniteWord_list' object has no attribute 'string_rep' |
66 | | ********************************************************************** |
67 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/debruijn_sequence.pyx", line 21: |
68 | | sage: for i in range(2**3): |
69 | | print (Word(map(lambda (j,b): b if j in shift(i) else '*', |
70 | | enumerate(seq))).string_rep()) |
71 | | Exception raised: |
72 | | Traceback (most recent call last): |
73 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
74 | | self.run_one_example(test, example, filename, compileflags) |
75 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
76 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
77 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
78 | | compileflags, 1) in test.globs |
79 | | File "<doctest __main__.example_0[6]>", line 3, in <module> |
80 | | enumerate(seq))).string_rep()) |
81 | | File "element.pyx", line 332, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:3527) |
82 | | File "misc.pyx", line 204, in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1488) |
83 | | AttributeError: 'sage.combinat.words.word_datatypes.FiniteWord_list' object has no attribute 'string_rep' |
84 | | ********************************************************************** |
85 | | 1 items had failures: |
86 | | 2 of 9 in __main__.example_0 |
87 | | ***Test Failed*** 2 failures. |
88 | | |
89 | | }}} |
90 | | |
91 | | Why the comma is removed in the following representation of WordMorphism? |
92 | | |
93 | | {{{ |
94 | | sage -t "devel/sage-main/sage/combinat/e_one_star.py" |
95 | | ********************************************************************** |
96 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/e_one_star.py", line 178: |
97 | | sage: E |
98 | | Expected: |
99 | | E_1^*(1->12, 10->1,11, 11->1,12, 12->1, 2->13, 3->14, 4->15, 5->16, 6->17, 7->18, 8->19, 9->1,10) |
100 | | Got: |
101 | | E_1^*(1->1.2 2->1.3 3->1.4 4->1.5 5->1.6 ...) |
102 | | ********************************************************************** |
103 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/e_one_star.py", line 1442: |
104 | | sage: E |
105 | | Expected: |
106 | | E_1^*(1->12, 2->13, 3->1) |
107 | | Got: |
108 | | E_1^*(1->12 2->13 3->1) |
109 | | ********************************************************************** |
110 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/e_one_star.py", line 1572: |
111 | | sage: E1Star(s) * E1Star(t) |
112 | | Expected: |
113 | | E_1^*(1->1, 2->1132, 3->1311) |
114 | | Got: |
115 | | E_1^*(1->1 2->1132 3->1311) |
116 | | ********************************************************************** |
117 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/e_one_star.py", line 1574: |
118 | | sage: E1Star(t * s) |
119 | | Expected: |
120 | | E_1^*(1->1, 2->1132, 3->1311) |
121 | | Got: |
122 | | E_1^*(1->1 2->1132 3->1311) |
123 | | ********************************************************************** |
124 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/e_one_star.py", line 1590: |
125 | | sage: E |
126 | | Expected: |
127 | | E_1^*(1->12, 2->13, 3->1) |
128 | | Got: |
129 | | E_1^*(1->12 2->13 3->1) |
130 | | ********************************************************************** |
131 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/e_one_star.py", line 1668: |
132 | | sage: E.sigma() |
133 | | Expected: |
134 | | WordMorphism: 1->12, 2->13, 3->1 |
135 | | Got: |
136 | | 1->12 2->13 3->1 |
137 | | ********************************************************************** |
138 | | 5 items had failures: |
139 | | 1 of 51 in __main__.example_0 |
140 | | 1 of 7 in __main__.example_37 |
141 | | 2 of 8 in __main__.example_40 |
142 | | 1 of 7 in __main__.example_41 |
143 | | 1 of 7 in __main__.example_45 |
144 | | ***Test Failed*** 6 failures. |
145 | | For whitespace errors, see the file /Users/slabbe/.sage//tmp/e_one_star_12815.py |
146 | | [11.6 s] |
147 | | |
148 | | }}} |
149 | | |
150 | | So {{{a.b.c}}} is the new way of printing words? |
151 | | |
152 | | {{{ |
153 | | sage -t "devel/sage-main/sage/combinat/free_module.py" |
154 | | ********************************************************************** |
155 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/free_module.py", line 785: |
156 | | sage: (1+q)*V(w) |
157 | | Expected: |
158 | | (q+1)*B[word: abc] |
159 | | Got: |
160 | | (q+1)*B[a.b.c] |
161 | | ********************************************************************** |
162 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/free_module.py", line 787: |
163 | | sage: ((1+q)/q)*V(w) |
164 | | Expected: |
165 | | ((q+1)/q)*B[word: abc] |
166 | | Got: |
167 | | ((q+1)/q)*B[a.b.c] |
168 | | ********************************************************************** |
169 | | 1 items had failures: |
170 | | 2 of 27 in __main__.example_24 |
171 | | ***Test Failed*** 2 failures. |
172 | | For whitespace errors, see the file /Users/slabbe/.sage//tmp/free_module_12843.py |
173 | | [5.3 s] |
174 | | |
175 | | }}} |
176 | | |
177 | | I don't agree with the new printing of WordMorphism. We changed it and had a discussion recently in #13677. Why should we change it again? Anyway, this discussion is independant of this ticket. I suggest this is not changed by this ticket and is discussed elsewhere. |
178 | | |
179 | | {{{ |
180 | | sage -t "devel/sage-main/sage/combinat/iet/constructors.py" |
181 | | ********************************************************************** |
182 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/iet/constructors.py", line 729: |
183 | | sage: s |
184 | | Expected: |
185 | | WordMorphism: a->acbbc, b->acbbcbbc, c->acbc |
186 | | Got: |
187 | | a->acbbc b->acbbcbbc c->acbc |
188 | | ********************************************************************** |
189 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/iet/constructors.py", line 749: |
190 | | sage: w1 |
191 | | Expected: |
192 | | word: acbbcacbcacbbcbbcacb |
193 | | Got: |
194 | | acbbcacbcacbbcbbcacb |
195 | | ********************************************************************** |
196 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/iet/constructors.py", line 752: |
197 | | sage: w2[:20] |
198 | | Expected: |
199 | | word: acbbcacbcacbbcbbcacb |
200 | | Got: |
201 | | acbbcacbcacbbcbbcacb |
202 | | ********************************************************************** |
203 | | 1 items had failures: |
204 | | 3 of 33 in __main__.example_5 |
205 | | ***Test Failed*** 3 failures. |
206 | | For whitespace errors, see the file /Users/slabbe/.sage//tmp/constructors_12870.py |
207 | | [4.8 s] |
208 | | |
209 | | }}} |
210 | | |
211 | | Why does {{{LyndonWords()}}} does not work anymore ? |
212 | | |
213 | | {{{ |
214 | | sage -t "devel/sage-main/sage/combinat/lyndon_word.py" |
215 | | ********************************************************************** |
216 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/lyndon_word.py", line 59: |
217 | | sage: LyndonWords() |
218 | | Exception raised: |
219 | | Traceback (most recent call last): |
220 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
221 | | self.run_one_example(test, example, filename, compileflags) |
222 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
223 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
224 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
225 | | compileflags, 1) in test.globs |
226 | | File "<doctest __main__.example_1[2]>", line 1, in <module> |
227 | | LyndonWords()###line 59: |
228 | | sage: LyndonWords() |
229 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/combinat/lyndon_word.py", line 109, in LyndonWords |
230 | | raise NotImplementedError |
231 | | NotImplementedError |
232 | | ********************************************************************** |
233 | | |
234 | | [...] |
235 | | |
236 | | ********************************************************************** |
237 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/lyndon_word.py", line 117: |
238 | | sage: LyndonWord([1,2,2]) |
239 | | Exception raised: |
240 | | Traceback (most recent call last): |
241 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
242 | | self.run_one_example(test, example, filename, compileflags) |
243 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
244 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
245 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
246 | | compileflags, 1) in test.globs |
247 | | File "<doctest __main__.example_2[2]>", line 1, in <module> |
248 | | LyndonWord([Integer(1),Integer(2),Integer(2)])###line 117: |
249 | | sage: LyndonWord([1,2,2]) |
250 | | NameError: name 'LyndonWord' is not defined |
251 | | ********************************************************************** |
252 | | |
253 | | }}} |
254 | | |
255 | | Methods disappeared : |
256 | | |
257 | | {{{ |
258 | | sage -t "devel/sage-main/sage/combinat/words/abstract_word.py" |
259 | | ********************************************************************** |
260 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/abstract_word.py", line 17: |
261 | | sage: p = f.longest_common_prefix(g, length='finite') |
262 | | Exception raised: |
263 | | Traceback (most recent call last): |
264 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
265 | | self.run_one_example(test, example, filename, compileflags) |
266 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
267 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
268 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
269 | | compileflags, 1) in test.globs |
270 | | File "<doctest __main__.example_0[5]>", line 1, in <module> |
271 | | p = f.longest_common_prefix(g, length='finite')###line 17: |
272 | | sage: p = f.longest_common_prefix(g, length='finite') |
273 | | File "element.pyx", line 332, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:3527) |
274 | | File "misc.pyx", line 200, in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1406) |
275 | | AttributeError: 'RightInfiniteWord_iterable_with_category' object has no attribute 'longest_common_prefix' |
276 | | ********************************************************************** |
277 | | [...] |
278 | | |
279 | | ********************************************************************** |
280 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/abstract_word.py", line 45: |
281 | | sage: Word(iter([1,2,3]), length="unknown").parent() |
282 | | Exception raised: |
283 | | Traceback (most recent call last): |
284 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
285 | | self.run_one_example(test, example, filename, compileflags) |
286 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
287 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
288 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
289 | | compileflags, 1) in test.globs |
290 | | File "<doctest __main__.example_1[2]>", line 1, in <module> |
291 | | Word(iter([Integer(1),Integer(2),Integer(3)]), length="unknown").parent()###line 45: |
292 | | sage: Word(iter([1,2,3]), length="unknown").parent() |
293 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/combinat/words/word.py", line 262, in Word |
294 | | return parent(data, **options) |
295 | | File "parent.pyx", line 809, in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7408) |
296 | | File "coerce_maps.pyx", line 100, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args (sage/structure/coerce_maps.c:4004) |
297 | | File "coerce_maps.pyx", line 90, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args (sage/structure/coerce_maps.c:3816) |
298 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/combinat/words/words.py", line 1700, in _element_constructor_ |
299 | | return self.finite_words()(data, **options) |
300 | | File "parent.pyx", line 809, in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7408) |
301 | | File "coerce_maps.pyx", line 100, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args (sage/structure/coerce_maps.c:4004) |
302 | | File "coerce_maps.pyx", line 90, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args (sage/structure/coerce_maps.c:3816) |
303 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/combinat/languages/base_class.py", line 364, in _element_constructor_ |
304 | | w = ec(data,self,**kkwds) |
305 | | File "word_datatypes.pyx", line 31, in sage.combinat.words.word_datatypes.FiniteWord_list.__init__ (sage/combinat/words/word_datatypes.c:2030) |
306 | | TypeError: __init__() got an unexpected keyword argument 'cache' |
307 | | ********************************************************************** |
308 | | |
309 | | [...] |
310 | | |
311 | | ********************************************************************** |
312 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/abstract_word.py", line 663: |
313 | | sage: w = Word(iter("abbacabba")) |
314 | | Exception raised: |
315 | | Traceback (most recent call last): |
316 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
317 | | self.run_one_example(test, example, filename, compileflags) |
318 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
319 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
320 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
321 | | compileflags, 1) in test.globs |
322 | | File "<doctest __main__.example_16[6]>", line 1, in <module> |
323 | | w = Word(iter("abbacabba"))###line 663: |
324 | | sage: w = Word(iter("abbacabba")) |
325 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/combinat/words/word.py", line 262, in Word |
326 | | return parent(data, **options) |
327 | | File "parent.pyx", line 807, in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7388) |
328 | | File "coerce_maps.pyx", line 82, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/structure/coerce_maps.c:3583) |
329 | | File "coerce_maps.pyx", line 77, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/structure/coerce_maps.c:3485) |
330 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/combinat/words/words.py", line 1705, in _element_constructor_ |
331 | | return self.infinite_words()(data, **options) |
332 | | File "parent.pyx", line 809, in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7408) |
333 | | File "coerce_maps.pyx", line 100, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args (sage/structure/coerce_maps.c:4004) |
334 | | File "coerce_maps.pyx", line 90, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args (sage/structure/coerce_maps.c:3816) |
335 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/categories/shifts.py", line 376, in _element_constructor_ |
336 | | self.check_element(w) |
337 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/dynamics/symbolic/full_shift.py", line 217, in check_element |
338 | | if elt[i] not in A: |
339 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/combinat/words/lazy_word.py", line 791, in __getitem__ |
340 | | return self._get_letter(key) |
341 | | File "lazy_list.pyx", line 615, in sage.misc.lazy_list.lazy_list.__call__ (sage/misc/lazy_list.c:3849) |
342 | | IndexError: lazy list index out of range |
343 | | ********************************************************************** |
344 | | |
345 | | [...] |
346 | | |
347 | | ********************************************************************** |
348 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/abstract_word.py", line 730: |
349 | | sage: w.lex_less(u) |
350 | | Exception raised: |
351 | | Traceback (most recent call last): |
352 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
353 | | self.run_one_example(test, example, filename, compileflags) |
354 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
355 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
356 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
357 | | compileflags, 1) in test.globs |
358 | | File "<doctest __main__.example_18[5]>", line 1, in <module> |
359 | | w.lex_less(u)###line 730: |
360 | | sage: w.lex_less(u) |
361 | | File "element.pyx", line 332, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:3527) |
362 | | File "misc.pyx", line 204, in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1488) |
363 | | AttributeError: 'sage.combinat.words.word_datatypes.FiniteWord_list' object has no attribute 'lex_less' |
364 | | ********************************************************************** |
365 | | |
366 | | [...] |
367 | | |
368 | | ********************************************************************** |
369 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/abstract_word.py", line 794: |
370 | | sage: w.apply_morphism(d) |
371 | | Exception raised: |
372 | | Traceback (most recent call last): |
373 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
374 | | self.run_one_example(test, example, filename, compileflags) |
375 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
376 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
377 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
378 | | compileflags, 1) in test.globs |
379 | | File "<doctest __main__.example_20[4]>", line 1, in <module> |
380 | | w.apply_morphism(d)###line 794: |
381 | | sage: w.apply_morphism(d) |
382 | | File "element.pyx", line 332, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:3527) |
383 | | File "misc.pyx", line 204, in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1488) |
384 | | AttributeError: 'sage.combinat.words.word_datatypes.FiniteWord_str' object has no attribute 'apply_morphism' |
385 | | ********************************************************************** |
386 | | [...] |
387 | | |
388 | | ********************************************************************** |
389 | | 34 items had failures: |
390 | | 3 of 9 in __main__.example_0 |
391 | | 4 of 7 in __main__.example_1 |
392 | | 5 of 9 in __main__.example_11 |
393 | | 15 of 30 in __main__.example_12 |
394 | | 7 of 10 in __main__.example_13 |
395 | | 7 of 10 in __main__.example_14 |
396 | | 3 of 9 in __main__.example_15 |
397 | | 8 of 16 in __main__.example_16 |
398 | | 6 of 10 in __main__.example_17 |
399 | | 6 of 15 in __main__.example_18 |
400 | | 6 of 15 in __main__.example_19 |
401 | | 3 of 6 in __main__.example_2 |
402 | | 5 of 13 in __main__.example_20 |
403 | | 6 of 11 in __main__.example_21 |
404 | | 5 of 10 in __main__.example_22 |
405 | | 10 of 18 in __main__.example_23 |
406 | | 10 of 18 in __main__.example_24 |
407 | | 16 of 28 in __main__.example_25 |
408 | | 4 of 9 in __main__.example_26 |
409 | | 3 of 8 in __main__.example_27 |
410 | | 2 of 7 in __main__.example_28 |
411 | | 11 of 16 in __main__.example_3 |
412 | | 9 of 16 in __main__.example_30 |
413 | | 2 of 18 in __main__.example_31 |
414 | | 9 of 19 in __main__.example_32 |
415 | | 10 of 17 in __main__.example_33 |
416 | | 4 of 9 in __main__.example_34 |
417 | | 8 of 15 in __main__.example_35 |
418 | | 7 of 12 in __main__.example_36 |
419 | | 3 of 6 in __main__.example_4 |
420 | | 5 of 12 in __main__.example_5 |
421 | | 4 of 9 in __main__.example_6 |
422 | | 3 of 10 in __main__.example_7 |
423 | | 7 of 13 in __main__.example_8 |
424 | | ***Test Failed*** 216 failures. |
425 | | For whitespace errors, see the file /Users/slabbe/.sage//tmp/abstract_word_14102.py |
426 | | }}} |
427 | | |
428 | | {{{ |
429 | | ********************************************************************** |
430 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/shuffle_product.py", line 255: |
431 | | sage: S = ShuffleProduct_overlapping(w,u) |
432 | | Exception raised: |
433 | | Traceback (most recent call last): |
434 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
435 | | self.run_one_example(test, example, filename, compileflags) |
436 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
437 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
438 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
439 | | compileflags, 1) in test.globs |
440 | | File "<doctest __main__.example_12[4]>", line 1, in <module> |
441 | | S = ShuffleProduct_overlapping(w,u)###line 255: |
442 | | sage: S = ShuffleProduct_overlapping(w,u) |
443 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/lib/python/site-packages/sage/combinat/words/shuffle_product.py", line 577, in __init__ |
444 | | raise TypeError("w1 and w2 should be words over integers") |
445 | | TypeError: w1 and w2 should be words over integers |
446 | | ********************************************************************** |
447 | | }}} |
448 | | |
449 | | {{{ |
450 | | ********************************************************************** |
451 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/word.py", line 362: |
452 | | sage: w.is_symmetric() |
453 | | Exception raised: |
454 | | Traceback (most recent call last): |
455 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
456 | | self.run_one_example(test, example, filename, compileflags) |
457 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
458 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
459 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
460 | | compileflags, 1) in test.globs |
461 | | File "<doctest __main__.example_8[5]>", line 1, in <module> |
462 | | w.is_symmetric()###line 362: |
463 | | sage: w.is_symmetric() |
464 | | File "element.pyx", line 332, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:3527) |
465 | | File "misc.pyx", line 200, in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1406) |
466 | | AttributeError: 'FiniteWord_callable_with_category' object has no attribute 'is_symmetric' |
467 | | ********************************************************************** |
468 | | |
469 | | [...] |
470 | | ********************************************************************** |
471 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/word.py", line 399: |
472 | | sage: prefix.minimal_period() |
473 | | Exception raised: |
474 | | Traceback (most recent call last): |
475 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
476 | | self.run_one_example(test, example, filename, compileflags) |
477 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
478 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
479 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
480 | | compileflags, 1) in test.globs |
481 | | File "<doctest __main__.example_9[7]>", line 1, in <module> |
482 | | prefix.minimal_period()###line 399: |
483 | | sage: prefix.minimal_period() |
484 | | File "element.pyx", line 332, in sage.structure.element.Element.__getattr__ (sage/structure/element.c:3527) |
485 | | File "misc.pyx", line 204, in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1488) |
486 | | AttributeError: 'sage.combinat.words.word_datatypes.FiniteWord_list' object has no attribute 'minimal_period' |
487 | | ********************************************************************** |
488 | | |
489 | | }}} |
490 | | |
491 | | {{{ |
492 | | ********************************************************************** |
493 | | File "/Users/slabbe/Applications/sage-5.6.rc0/devel/sage-main/sage/combinat/words/words.py", line 1217: |
494 | | sage: for m in W.iter_morphisms([2, 1]): m |
495 | | Exception raised: |
496 | | Traceback (most recent call last): |
497 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test |
498 | | self.run_one_example(test, example, filename, compileflags) |
499 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/sagedoctest.py", line 38, in run_one_example |
500 | | OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags) |
501 | | File "/Users/slabbe/Applications/sage-5.6.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example |
502 | | compileflags, 1) in test.globs |
503 | | File "<doctest __main__.example_32[12]>", line 1, in <module> |
504 | | for m in W.iter_morphisms([Integer(2), Integer(1)]): m###line 1217: |
505 | | sage: for m in W.iter_morphisms([2, 1]): m |
506 | | File "parent.pyx", line 627, in sage.structure.parent.Parent.__getattr__ (sage/structure/parent.c:6187) |
507 | | File "misc.pyx", line 200, in sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1406) |
508 | | AttributeError: 'FiniteAndInfiniteWords_with_category' object has no attribute 'iter_morphisms' |
509 | | ********************************************************************** |
510 | | |
511 | | }}} |
| 1 | I removed this comment after reorganisation. |