forked from klevasseur/ads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sage-test2.txt
678 lines (678 loc) · 28.9 KB
/
sage-test2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
too few successful tests, not using stored timings
Running doctests with ID 2019-12-31-18-01-54-b441a7ec.
Git branch: develop
Using --optional=4ti2,benzene,bliss,buckygen,build,cbc,cryptominisat,csdp,database_cremona_ellcurve,database_jones_numfield,database_kohel,database_odlyzko_zeta,database_symbolic_data,dochtml,dot2tex,e_antic,fricas,gambit,gap_packages,giacpy_sage,latte_int,libsemigroups,lidia,lrslib,mcqd,meataxe,memlimit,normaliz,ore_algebra,p_group_cohomology,pari_jupyter,plantri,primecount,pynormaliz,python2,qhull,saclib,sage,tides,topcom
Doctesting 1 file.
sage -t ads.py
**********************************************************************
File "ads.py", line 70, in ads
Failed example:
subsets(U)
Expected:
<generator object powerset at 0x7fec5ffd33c0>
Got:
<generator object powerset at 0x7f552730adc0>
**********************************************************************
File "ads.py", line 135, in ads
Failed example:
def fa(x):
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[23]>", line 1
def fa(x):
^
SyntaxError: unexpected EOF while parsing
**********************************************************************
File "ads.py", line 136, in ads
Failed example:
return x^2
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[24]>", line 1
return x**Integer(2)
^
IndentationError: unexpected indent
**********************************************************************
File "ads.py", line 137, in ads
Failed example:
[fa(2),fa(1.2)]
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[25]>", line 1, in <module>
[fa(Integer(2)),fa(RealNumber('1.2'))]
NameError: name 'fa' is not defined
**********************************************************************
File "ads.py", line 170, in ads
Failed example:
def D(n):
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[29]>", line 1
def D(n):
^
SyntaxError: unexpected EOF while parsing
**********************************************************************
File "ads.py", line 171, in ads
Failed example:
if n<=2:
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[30]>", line 1
if n<=Integer(2):
^
IndentationError: unexpected indent
**********************************************************************
File "ads.py", line 172, in ads
Failed example:
return n-1
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[31]>", line 1
return n-Integer(1)
^
IndentationError: unexpected indent
**********************************************************************
File "ads.py", line 173, in ads
Failed example:
else:
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[32]>", line 1
else:
^
IndentationError: unexpected indent
**********************************************************************
File "ads.py", line 174, in ads
Failed example:
return (n-1)*(D(n-2)+D(n-1))
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[33]>", line 1
return (n-Integer(1))*(D(n-Integer(2))+D(n-Integer(1)))
^
IndentationError: unexpected indent
**********************************************************************
File "ads.py", line 176, in ads
Failed example:
list(map(lambda k:[k,D(k),(D(k)/factorial(k)).n(digits=8)],range(1,16)))
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[34]>", line 1, in <module>
list(map(lambda k:[k,D(k),(D(k)/factorial(k)).n(digits=Integer(8))],range(Integer(1),Integer(16))))
File "<doctest ads[34]>", line 1, in <lambda>
list(map(lambda k:[k,D(k),(D(k)/factorial(k)).n(digits=Integer(8))],range(Integer(1),Integer(16))))
NameError: global name 'D' is not defined
**********************************************************************
File "ads.py", line 195, in ads
Failed example:
var('z')
Expected nothing
Got:
z
**********************************************************************
File "ads.py", line 214, in ads
Failed example:
M = Matrix([[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[40]>", line 1
M = Matrix([[Integer(0),Integer(1),Integer(0),Integer(0),Integer(0)],[Integer(0),Integer(0),Integer(1),Integer(0),Integer(0)],[Integer(0),Integer(0),Integer(0),Integer(1),Integer(0)],
^
SyntaxError: unexpected EOF while parsing
**********************************************************************
File "ads.py", line 215, in ads
Failed example:
[0,0,0,0,1],[1,0,0,0,0]])
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[41]>", line 1
[Integer(0),Integer(0),Integer(0),Integer(0),Integer(1)],[Integer(1),Integer(0),Integer(0),Integer(0),Integer(0)]])
^
IndentationError: unexpected indent
**********************************************************************
File "ads.py", line 216, in ads
Failed example:
DiGraph(M).show()
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[42]>", line 1, in <module>
DiGraph(M).show()
NameError: name 'M' is not defined
**********************************************************************
File "ads.py", line 224, in ads
Failed example:
DiGraph(M).edges()
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[43]>", line 1, in <module>
DiGraph(M).edges()
NameError: name 'M' is not defined
**********************************************************************
File "ads.py", line 269, in ads
Failed example:
list(Gr.breadth_first_search(0,report_distance='True'))
Expected:
[(0, 0),(7, 1),(14, 1),(15, 1),(16, 2),(2, 2),(3, 2),(13, 2),(17, 2),
(4, 2),(5, 2),(10, 2),(6, 2),(11, 2),(8, 3),(1, 3),(9, 3),(12, 3)]
Got:
[(0, 0),
(7, 1),
(14, 1),
(15, 1),
(16, 2),
(2, 2),
(3, 2),
(13, 2),
(17, 2),
(4, 2),
(5, 2),
(10, 2),
(6, 2),
(11, 2),
(8, 3),
(1, 3),
(9, 3),
(12, 3)]
**********************************************************************
File "ads.py", line 284, in ads
Failed example:
edges=[(1, 2, 4), (2, 8, 4), (3, 8, 4), (4, 7, 5), (6, 8, 5), (1, 3, 6), (1, 7, 6), (4, 5, 6), (5, 10, 9), (2, 10, 7), (4, 6, 7), (2, 4, 8), (1,
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[59]>", line 1
edges=[(Integer(1), Integer(2), Integer(4)), (Integer(2), Integer(8), Integer(4)), (Integer(3), Integer(8), Integer(4)), (Integer(4), Integer(7), Integer(5)), (Integer(6), Integer(8), Integer(5)), (Integer(1), Integer(3), Integer(6)), (Integer(1), Integer(7), Integer(6)), (Integer(4), Integer(5), Integer(6)), (Integer(5), Integer(10), Integer(9)), (Integer(2), Integer(10), Integer(7)), (Integer(4), Integer(6), Integer(7)), (Integer(2), Integer(4), Integer(8)), (Integer(1),
^
SyntaxError: unexpected EOF while parsing
**********************************************************************
File "ads.py", line 285, in ads
Failed example:
8, 9), (1, 9, 9), (5, 6, 9), (1, 10, 10), (2, 9, 10), (4, 9, 10), (5, 9, 10), (6, 9, 10)]
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[60]>", line 1
Integer(8), Integer(9)), (Integer(1), Integer(9), Integer(9)), (Integer(5), Integer(6), Integer(9)), (Integer(1), Integer(10), Integer(10)), (Integer(2), Integer(9), Integer(10)), (Integer(4), Integer(9), Integer(10)), (Integer(5), Integer(9), Integer(10)), (Integer(6), Integer(9), Integer(10))]
^
SyntaxError: invalid syntax
**********************************************************************
File "ads.py", line 286, in ads
Failed example:
G=Graph(edges)
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[61]>", line 1, in <module>
G=Graph(edges)
NameError: name 'edges' is not defined
**********************************************************************
File "ads.py", line 287, in ads
Failed example:
G.weighted(True)
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[62]>", line 1, in <module>
G.weighted(True)
NameError: name 'G' is not defined
**********************************************************************
File "ads.py", line 288, in ads
Failed example:
G.graphplot(edge_labels=True,save_pos=True).show()
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[63]>", line 1, in <module>
G.graphplot(edge_labels=True,save_pos=True).show()
NameError: name 'G' is not defined
**********************************************************************
File "ads.py", line 293, in ads
Failed example:
E = kruskal(G, check=True);E
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[65]>", line 1, in <module>
E = kruskal(G, check=True);E
NameError: name 'G' is not defined
**********************************************************************
File "ads.py", line 298, in ads
Failed example:
T=Graph(E)
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[66]>", line 1, in <module>
T=Graph(E)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/graphs/graph.py", line 1120, in __init__
raise ValueError("This input cannot be turned into a graph")
ValueError: This input cannot be turned into a graph
**********************************************************************
File "ads.py", line 299, in ads
Failed example:
T.set_pos(G.get_pos())
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[67]>", line 1, in <module>
T.set_pos(G.get_pos())
NameError: name 'T' is not defined
**********************************************************************
File "ads.py", line 300, in ads
Failed example:
T.graphplot(edge_labels=True).show()
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest ads[68]>", line 1, in <module>
T.graphplot(edge_labels=True).show()
NameError: name 'T' is not defined
**********************************************************************
File "ads.py", line 326, in ads
Failed example:
while b>0:
print('computing gcd of '+str(a)+' and '+str(b))
[a,b]=[b,a%b]
Expected nothing
Got:
computing gcd of 99 and 53
computing gcd of 53 and 46
computing gcd of 46 and 7
computing gcd of 7 and 4
computing gcd of 4 and 3
computing gcd of 3 and 1
**********************************************************************
File "ads.py", line 329, in ads
Failed example:
print('result is '+str(a))
Expected:
computing gcd of 99 and 53
computing gcd of 53 and 46
computing gcd of 46 and 7
computing gcd of 7 and 4
computing gcd of 4 and 3
computing gcd of 3 and 1
result is 1
Got:
result is 1
**********************************************************************
File "ads.py", line 350, in ads
Failed example:
print(gcd(a,b))
Expected nothing
Got:
1
**********************************************************************
File "ads.py", line 351, in ads
Failed example:
print(xgcd(a,b))
Expected:
1
(1, -173, 622)
Got:
(1, -173, 622)
**********************************************************************
File "ads.py", line 358, in ads
Failed example:
print(R.addition_table('elements'))
Expected nothing
Got:
+ 0 1 2 3 4 5
+------------
0| 0 1 2 3 4 5
1| 1 2 3 4 5 0
2| 2 3 4 5 0 1
3| 3 4 5 0 1 2
4| 4 5 0 1 2 3
5| 5 0 1 2 3 4
<BLANKLINE>
**********************************************************************
File "ads.py", line 359, in ads
Failed example:
print(R.multiplication_table('elements'))
Expected:
+ 0 1 2 3 4 5
+------------
0| 0 1 2 3 4 5
1| 1 2 3 4 5 0
2| 2 3 4 5 0 1
3| 3 4 5 0 1 2
4| 4 5 0 1 2 3
5| 5 0 1 2 3 4
Got:
* 0 1 2 3 4 5
+------------
0| 0 0 0 0 0 0
1| 0 1 2 3 4 5
2| 0 2 4 0 2 4
3| 0 3 0 3 0 3
4| 0 4 2 0 4 2
5| 0 5 4 3 2 1
<BLANKLINE>
**********************************************************************
File "ads.py", line 399, in ads
Failed example:
C.echelon_form()
Expected:
[1 0 0 1/2 1/2]
[0 1 0 -3/2 3/2]
[0 0 1 0 -1]
Got:
[ 1 0 0 1/2 1/2]
[ 0 1 0 -3/2 3/2]
[ 0 0 1 0 -1]
**********************************************************************
File "ads.py", line 415, in ads
Failed example:
C3.echelon_form()
Expected:
[ 1.000000 0.0000000 0.0000000 0.5000000 0.500000000000000]
[ 0.0000000 1.000000 0.0000000 -1.500000 1.50000000000000]
[ 0.0000000 0.0000000 1.000000 4.934324e-17 -1.00000000000000]
Got:
[ 1.00000000000000 0.000000000000000 0.000000000000000 0.500000000000000 0.500000000000000]
[ 0.000000000000000 1.00000000000000 0.000000000000000 -1.50000000000000 1.50000000000000]
[ 0.000000000000000 0.000000000000000 1.00000000000000 4.93432455388958e-17 -1.00000000000000]
**********************************************************************
File "ads.py", line 422, in ads
Failed example:
var (' D, P')
Expected nothing
Got:
(D, P)
**********************************************************************
File "ads.py", line 430, in ads
Failed example:
(D,P)=A.right_eigenmatrix();(D,P)
Expected:
([6 0 0]
[0 4 0]
[0 0 3],
[ 1 1 1]
[ 2 0 -1]
[ 1 -1 1])
Got:
(
[6 0 0] [ 1 1 1]
[0 4 0] [ 2 0 -1]
[0 0 3], [ 1 -1 1]
)
**********************************************************************
File "ads.py", line 455, in ads
Failed example:
P.numerical_approx(digits=3)
Expected nothing
Got:
[ 1.00 1.00 1.00]
[ -3.65 -0.726 0.377]
[ 1.38 -2.65 0.274]
**********************************************************************
File "ads.py", line 456, in ads
Failed example:
print('------------------')
Expected nothing
Got:
------------------
**********************************************************************
File "ads.py", line 457, in ads
Failed example:
D=(P.inverse()*A2*P);D.numerical_approx(digits=3)
Expected:
[ 4.35 0.000 0.000]
[0.000 7.27 0.000]
[0.000 0.000 8.38]
Got:
[ 4.35 1.90e-19 5.76e-20]
[-4.34e-19 7.27 -4.07e-19]
[ 1.08e-19 4.34e-19 8.38]
**********************************************************************
File "ads.py", line 465, in ads
Failed example:
(D,P)=A3.right_eigenmatrix();(D,P)
Expected:
([1 0 0]
[0 3 0]
[0 0 3],
[ 1 0 0]
[ 1/4 1 0]
[-1/4 1 0])
Got:
(
[1 0 0] [ 1 0 0]
[0 3 0] [ 1/4 1 0]
[0 0 3], [-1/4 1 0]
)
**********************************************************************
File "ads.py", line 562, in ads
Failed example:
slow_exp(2,5,7)
Expected nothing
Got:
4
**********************************************************************
File "ads.py", line 575, in ads
Failed example:
fast_exp(2,5,7)
Expected nothing
Got:
4
**********************************************************************
File "ads.py", line 587, in ads
Failed example:
gcd(1001,154) #test
Expected nothing
Got:
77
**********************************************************************
File "ads.py", line 625, in ads
Failed example:
print('done')
Expected:
'done'
Got:
done
**********************************************************************
File "ads.py", line 637, in ads
Failed example:
else:
fruit_color['Red']=['raspberry']
Exception raised:
Traceback (most recent call last):
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1121, in compile_and_execute
compiled = compiler(example)
File "/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 649, in compiler
compileflags, 1)
File "<doctest ads[156]>", line 1
else:
^
SyntaxError: invalid syntax
**********************************************************************
File "ads.py", line 639, in ads
Failed example:
fruit_color['Red']
Expected:
['apple', 'pomegranate', 'blood orange', 'raspberry', 'raspberry']
Got:
['apple', 'pomegranate', 'blood orange', 'raspberry']
**********************************************************************
File "ads.py", line 644, in ads
Failed example:
for fruit in fruit_color:
print([fruit,fruit_color[fruit]])
Expected:
['Purple', ['plum', 'grape']]
['Orange', ['orange', 'pineapple']]
['Green', ['apple', 'pear', 'grape', 'lime']]
['Yellow', ['banana', 'apple', 'lemon']]
['Red', ['apple', 'pomegranate', 'blood orange','raspberry']]
Got:
['Purple', ['plum', 'grape']]
['Orange', ['orange', 'pineapple']]
['Green', ['apple', 'pear', 'grape', 'lime']]
['Yellow', ['banana', 'apple', 'lemon']]
['Red', ['apple', 'pomegranate', 'blood orange', 'raspberry']]
**********************************************************************
File "ads.py", line 654, in ads
Failed example:
DiGraph(fruit_color).plot()
Expected nothing
Got:
Graphics object consisting of 33 graphics primitives
**********************************************************************
File "ads.py", line 664, in ads
Failed example:
vertex_pos
Expected:
{'Purple': (-5, 0), 'Orange': (-5, 1), 'Green': (-5, 2), 'Red': (-5, 4), 'Yellow': (-5, 3)}
Got:
{'Green': (-5, 2),
'Orange': (-5, 1),
'Purple': (-5, 0),
'Red': (-5, 4),
'Yellow': (-5, 3)}
**********************************************************************
File "ads.py", line 676, in ads
Failed example:
vertex_pos
Expected:
{'blood orange': (5, 0), 'grape': (5, 1), 'apple': (5, 2), 'Purple': (-5, 0), 'plum': (5, 10), 'pomegranate': (5, 3), 'pear': (5, 4), 'Yellow': (-5, 3), 'orange': (5, 7), 'Green': (-5, 2), 'pineapple': (5, 6), 'Orange': (-5, 1), 'lemon': (5, 8), 'raspberry': (5, 9), 'banana': (5, 5), 'Red': (-5, 4), 'lime': (5, 11)}
Got:
{'Green': (-5, 2),
'Orange': (-5, 1),
'Purple': (-5, 0),
'Red': (-5, 4),
'Yellow': (-5, 3),
'apple': (5, 2),
'banana': (5, 5),
'blood orange': (5, 0),
'grape': (5, 1),
'lemon': (5, 8),
'lime': (5, 11),
'orange': (5, 7),
'pear': (5, 4),
'pineapple': (5, 6),
'plum': (5, 10),
'pomegranate': (5, 3),
'raspberry': (5, 9)}
**********************************************************************
File "ads.py", line 681, in ads
Failed example:
DiGraph(fruit_color).plot(pos=vertex_pos,vertex_size=1)
Expected nothing
Got:
Graphics object consisting of 33 graphics primitives
**********************************************************************
1 item had failures:
50 of 176 in ads
Error: TAB character found at lines 136,171,172,.,.,.,402
[175 tests, 50 failures, 5.30 s]
----------------------------------------------------------------------
sage -t ads.py # Tab character found
sage -t ads.py # 50 doctests failed
----------------------------------------------------------------------
Total time for all tests: 5.4 seconds
cpu time: 4.6 seconds
cumulative wall time: 5.3 seconds