Ticket #6334: stock-tests.txt

File stock-tests.txt, 8.2 KB (added by rbeezer, 12 years ago)

sage -t -optional output on stock.py

Line 
1sage -t -optional "devel/sage-finance-2/sage/finance/stock.py"
2**********************************************************************
3File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 328:
4    sage: finance.Stock('vmw').open(startdate='Jan+1,+2008', enddate='Feb+1,+2008')                 # optional -- internet
5Expected:
6    [83.0500, 85.4900, 84.9000, 82.0000, 81.2500 ... 82.0000, 58.2700, 54.4900, 55.6000, 56.9800]
7Got:
8    [85.4900, 84.9000, 82.0000, 81.2500, 74.0100 ... 82.0000, 58.2700, 54.4900, 55.6000, 56.9800]
9**********************************************************************
10File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 335:
11    sage: c.google(startdate='Feb+1,+2008', enddate='Mar+1,+2008')[:5]    # optional -- internet
12Expected:
13    [
14     31-Jan-08 55.60 57.35 55.52 56.67    2591100,
15      1-Feb-08 56.98 58.14 55.06 57.85    2473000,
16      4-Feb-08 58.00 60.47 56.91 58.05    1816500,
17      5-Feb-08 57.60 59.30 57.17 59.30    1709000,
18      6-Feb-08 60.32 62.00 59.50 61.52    2191100
19    ]
20Got:
21    [
22      1-Feb-08 56.98 58.14 55.06 57.85    2473000,
23      4-Feb-08 58.00 60.47 56.91 58.05    1816500,
24      5-Feb-08 57.60 59.30 57.17 59.30    1709000,
25      6-Feb-08 60.32 62.00 59.50 61.52    2191100,
26      7-Feb-08 60.50 62.75 59.56 60.80    1511900
27    ]
28**********************************************************************
29File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 343:
30    sage: c.open()    # optional -- internet
31Expected:
32    [55.6000, 56.9800, 58.0000, 57.6000, 60.3200 ... 56.5500, 59.3000, 60.0000, 59.7900, 59.2600]
33Got:
34    [56.9800, 58.0000, 57.6000, 60.3200, 60.5000 ... 56.5500, 59.3000, 60.0000, 59.7900, 59.2600]
35**********************************************************************
36File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 390:
37    sage: finance.Stock('vmw').close(startdate='Jan+1,+2008', enddate='Feb+1,+2008')                 # optional -- internet
38Expected:
39    [84.9900, 84.6000, 83.9500, 80.4900, 72.9900 ... 83.0000, 54.8700, 56.4200, 56.6700, 57.8500]
40Got:
41    [84.6000, 83.9500, 80.4900, 72.9900, 74.5000 ... 83.0000, 54.8700, 56.4200, 56.6700, 57.8500]
42**********************************************************************
43File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 397:
44    sage: c.google(startdate='Feb+1,+2008', enddate='Mar+1,+2008')[:5]    # optional -- internet
45Expected:
46    [
47     31-Jan-08 55.60 57.35 55.52 56.67    2591100,
48      1-Feb-08 56.98 58.14 55.06 57.85    2473000,
49      4-Feb-08 58.00 60.47 56.91 58.05    1816500,
50      5-Feb-08 57.60 59.30 57.17 59.30    1709000,
51      6-Feb-08 60.32 62.00 59.50 61.52    2191100
52    ]
53Got:
54    [
55      1-Feb-08 56.98 58.14 55.06 57.85    2473000,
56      4-Feb-08 58.00 60.47 56.91 58.05    1816500,
57      5-Feb-08 57.60 59.30 57.17 59.30    1709000,
58      6-Feb-08 60.32 62.00 59.50 61.52    2191100,
59      7-Feb-08 60.50 62.75 59.56 60.80    1511900
60    ]
61**********************************************************************
62File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 405:
63    sage: c.close()    # optional -- internet
64Expected:
65    [56.6700, 57.8500, 58.0500, 59.3000, 61.5200 ... 58.2900, 60.1800, 59.8600, 59.9500, 58.6700]
66Got:
67    [57.8500, 58.0500, 59.3000, 61.5200, 60.8000 ... 58.2900, 60.1800, 59.8600, 59.9500, 58.6700]
68**********************************************************************
69File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 532:
70    sage: finance.Stock('aapl').google(startdate='Jan+1,+1990')[:2]    # optional -- internet
71Expected:
72    [
73      2-Jan-90 0.00 9.38 8.75 9.31    6542800,
74      3-Jan-90 0.00 9.50 9.38 9.38    7428400
75    ]
76Got:
77    [
78      7-Oct-08 100.48 101.50 88.95 89.16   65451300,
79      8-Oct-08 85.91 96.33 85.68 89.79   77577200
80    ]
81**********************************************************************
82File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 224:
83    sage: finance.Stock('vmw').google(startdate='Jun+16,+2008')[:5]  # optional - internet
84Expected:
85    [
86     16-Jun-08 66.00 67.50 65.60 67.47    1742000,
87     17-Jun-08 67.84 67.84 66.03 67.00    1196900,
88     18-Jun-08 66.50 66.56 64.76 66.19    1186400,
89     19-Jun-08 65.92 66.50 64.69 65.72     549200,
90     20-Jun-08 65.72 65.72 63.12 63.86    1242300
91    ]
92Got:
93    [
94      8-Oct-08 19.98 21.96 18.50 20.41    3453500,
95      9-Oct-08 21.40 21.50 19.42 20.45    1614600,
96     10-Oct-08 19.01 22.38 18.74 21.03    3403100,
97     13-Oct-08 23.49 24.43 22.10 24.00    1495400,
98     14-Oct-08 24.65 25.49 21.30 21.33    1639400
99    ]
100**********************************************************************
101File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 235:
102    sage: finance.Stock('F').google('Jan+3,+1978', 'Jul+7,+2008')[:5] # optional -- internet
103Expected:
104    [
105      3-Jan-78 0.00 1.93 1.89 1.89    1618200,
106      4-Jan-78 0.00 1.89 1.87 1.88    2482700,
107      5-Jan-78 0.00 1.89 1.84 1.84    2994900,
108      6-Jan-78 0.00 1.84 1.82 1.83    3042500,
109      9-Jan-78 0.00 1.81 1.79 1.81    3916400
110    ]
111Got:
112    [
113     21-Sep-07 8.34 8.34 8.18 8.23   32609900,
114     24-Sep-07 8.47 8.61 8.36 8.48   55663400,
115     25-Sep-07 8.40 8.42 8.25 8.34   25989400,
116     26-Sep-07 8.68 9.00 8.53 8.88   82528700,
117     27-Sep-07 8.90 8.93 8.61 8.63   48368500
118    ]
119**********************************************************************
120File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 249:
121    sage: finance.Stock('AAPL').google('Sep+1,+1900', 'Jan+1,+2000')[0:5] # optional -- internet
122Expected:
123    [
124      4-Jan-99 0.00 10.56 10.00 10.31   34031600,
125      5-Jan-99 0.00 10.98 10.38 10.83   50360400,
126      6-Jan-99 0.00 11.03 10.25 10.44   48160800,
127      7-Jan-99 0.00 11.27 10.53 11.25   51036400,
128      8-Jan-99 0.00 11.72 11.00 11.25   24240000
129    ]
130Got:
131    [
132     19-Mar-99 0.00 9.00 8.22 8.38   19387600,
133     22-Mar-99 0.00 8.80 8.23 8.77   21200000,
134     23-Mar-99 0.00 8.61 8.19 8.25   14841200,
135     24-Mar-99 0.00 8.44 8.12 8.42   14286800,
136     25-Mar-99 0.00 8.72 8.34 8.45   14284400
137    ]
138**********************************************************************
139File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 261:
140    sage: finance.Stock("OTC:NTDOY").google(startdate="Jan+1,+2007", enddate="Jan+1,+2008")[:5]  # optional -- internet
141Expected:
142    [
143      3-Jan-07 32.44 32.75 32.30 32.44     156283,
144      4-Jan-07 31.70 32.40 31.20 31.70     222643,
145      5-Jan-07 30.15 30.50 30.15 30.15      65670,
146      8-Jan-07 30.10 30.50 30.00 30.10     130765,
147      9-Jan-07 29.90 30.05 29.60 29.90     103338
148    ]
149Got:
150    [
151     19-Mar-07 36.50 36.65 36.10 36.50      45321,
152     20-Mar-07 36.45 36.60 36.25 36.45      60446,
153     21-Mar-07 36.70 36.70 36.22 36.70     114151,
154     22-Mar-07 36.50 36.55 36.00 36.50     161073,
155     23-Mar-07 36.50 36.80 36.40 36.50     205953
156    ]
157**********************************************************************
158File "/opt/sage-dev/devel/sage-finance-2/sage/finance/stock.py", line 276:
159    sage: sage.finance.stock.Stock("AAPL", 22144).google(startdate='Jan+1,+1990')[:5] # optional -- internet
160Expected:
161    [
162      2-Jan-90 0.00 9.38 8.75 9.31    6542800,
163      3-Jan-90 0.00 9.50 9.38 9.38    7428400,
164      4-Jan-90 0.00 9.69 9.31 9.41    7911200,
165      5-Jan-90 0.00 9.56 9.25 9.44    4404000,
166      8-Jan-90 0.00 9.50 9.25 9.50    3627600
167    ]
168Got:
169    [
170      7-Oct-08 100.48 101.50 88.95 89.16   65451300,
171      8-Oct-08 85.91 96.33 85.68 89.79   77577200,
172      9-Oct-08 93.35 95.80 86.60 88.74   56980900,
173     10-Oct-08 85.70 100.00 85.00 96.80   77878400,
174     13-Oct-08 104.55 110.53 101.02 110.26   53571800
175    ]
176**********************************************************************
1774 items had failures:
178   3 of   7 in __main__.example_10
179   3 of   7 in __main__.example_11
180   1 of   3 in __main__.example_14
181   5 of   8 in __main__.example_9
182***Test Failed*** 12 failures.
183For whitespace errors, see the file /opt/sage-dev/tmp/.doctest_stock.py
184         [3.8 s]
185exit code: 1024
186 
187----------------------------------------------------------------------
188The following tests failed:
189
190
191        sage -t -optional "devel/sage-finance-2/sage/finance/stock.py"
192Total time for all tests: 3.8 seconds