forked from klevasseur/ads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsage-test.txt
152 lines (150 loc) · 6.32 KB
/
sage-test.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
**********************************************************************
File "ads.py", line 642, in ads
Failed example:
if 'Red' in fruit_color:
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[179]>", line 1
if 'Red' in fruit_color:
^
SyntaxError: unexpected EOF while parsing
**********************************************************************
File "ads.py", line 643, in ads
Failed example:
fruit_color['Red']=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[180]>", line 1
fruit_color['Red']=fruit_color['Red']+['raspberry']
^
IndentationError: unexpected indent
**********************************************************************
File "ads.py", line 644, 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[181]>", line 1
else:
^
SyntaxError: invalid syntax
**********************************************************************
File "ads.py", line 645, in ads
Failed example:
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[182]>", line 1
fruit_color['Red']=['raspberry']
^
IndentationError: unexpected indent
**********************************************************************
File "ads.py", line 646, in ads
Failed example:
fruit_color['Red']
Expected:
['apple', 'pomegranate', 'blood orange', 'raspberry', 'raspberry']
Got:
['apple', 'pomegranate', 'blood orange']
**********************************************************************
File "ads.py", line 651, 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']]
**********************************************************************
File "ads.py", line 661, in ads
Failed example:
DiGraph(fruit_color).plot()
Expected nothing
Got:
Graphics object consisting of 31 graphics primitives
**********************************************************************
File "ads.py", line 671, 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 683, 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, 10),
'orange': (5, 7),
'pear': (5, 4),
'pineapple': (5, 6),
'plum': (5, 9),
'pomegranate': (5, 3)}
**********************************************************************
File "ads.py", line 688, in ads
Failed example:
DiGraph(fruit_color).plot(pos=vertex_pos,vertex_size=1)
Expected nothing
Got:
Graphics object consisting of 31 graphics primitives
**********************************************************************
1 item had failures:
89 of 202 in ads
Error: TAB character found at lines 136,171,172,.,.,.,645
[201 tests, 89 failures, 4.45 s]
----------------------------------------------------------------------
sage -t ads.py # Tab character found
sage -t ads.py # 89 doctests failed
----------------------------------------------------------------------
Total time for all tests: 4.5 seconds
cpu time: 4.2 seconds
cumulative wall time: 4.5 seconds