1# Copyright 2013 the V8 project authors. All rights reserved.
2# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1.  Redistributions of source code must retain the above copyright
8#     notice, this list of conditions and the following disclaimer.
9# 2.  Redistributions in binary form must reproduce the above copyright
10#     notice, this list of conditions and the following disclaimer in the
11#     documentation and/or other materials provided with the distribution.
12#
13# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
14# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
17# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
24Tests correctness of function calls when the function is overwritten.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29PASS bar(i, i + 1) is 1
30PASS bar(i, i + 1) is 3
31PASS bar(i, i + 1) is 5
32PASS bar(i, i + 1) is 7
33PASS bar(i, i + 1) is 9
34PASS bar(i, i + 1) is 11
35PASS bar(i, i + 1) is 13
36PASS bar(i, i + 1) is 15
37PASS bar(i, i + 1) is 17
38PASS bar(i, i + 1) is 19
39PASS bar(i, i + 1) is 21
40PASS bar(i, i + 1) is 23
41PASS bar(i, i + 1) is 25
42PASS bar(i, i + 1) is 27
43PASS bar(i, i + 1) is 29
44PASS bar(i, i + 1) is 31
45PASS bar(i, i + 1) is 33
46PASS bar(i, i + 1) is 35
47PASS bar(i, i + 1) is 37
48PASS bar(i, i + 1) is 39
49PASS bar(i, i + 1) is 41
50PASS bar(i, i + 1) is 43
51PASS bar(i, i + 1) is 45
52PASS bar(i, i + 1) is 47
53PASS bar(i, i + 1) is 49
54PASS bar(i, i + 1) is 51
55PASS bar(i, i + 1) is 53
56PASS bar(i, i + 1) is 55
57PASS bar(i, i + 1) is 57
58PASS bar(i, i + 1) is 59
59PASS bar(i, i + 1) is 61
60PASS bar(i, i + 1) is 63
61PASS bar(i, i + 1) is 65
62PASS bar(i, i + 1) is 67
63PASS bar(i, i + 1) is 69
64PASS bar(i, i + 1) is 71
65PASS bar(i, i + 1) is 73
66PASS bar(i, i + 1) is 75
67PASS bar(i, i + 1) is 77
68PASS bar(i, i + 1) is 79
69PASS bar(i, i + 1) is 81
70PASS bar(i, i + 1) is 83
71PASS bar(i, i + 1) is 85
72PASS bar(i, i + 1) is 87
73PASS bar(i, i + 1) is 89
74PASS bar(i, i + 1) is 91
75PASS bar(i, i + 1) is 93
76PASS bar(i, i + 1) is 95
77PASS bar(i, i + 1) is 97
78PASS bar(i, i + 1) is 99
79PASS bar(i, i + 1) is 101
80PASS bar(i, i + 1) is 103
81PASS bar(i, i + 1) is 105
82PASS bar(i, i + 1) is 107
83PASS bar(i, i + 1) is 109
84PASS bar(i, i + 1) is 111
85PASS bar(i, i + 1) is 113
86PASS bar(i, i + 1) is 115
87PASS bar(i, i + 1) is 117
88PASS bar(i, i + 1) is 119
89PASS bar(i, i + 1) is 121
90PASS bar(i, i + 1) is 123
91PASS bar(i, i + 1) is 125
92PASS bar(i, i + 1) is 127
93PASS bar(i, i + 1) is 129
94PASS bar(i, i + 1) is 131
95PASS bar(i, i + 1) is 133
96PASS bar(i, i + 1) is 135
97PASS bar(i, i + 1) is 137
98PASS bar(i, i + 1) is 139
99PASS bar(i, i + 1) is 141
100PASS bar(i, i + 1) is 143
101PASS bar(i, i + 1) is 145
102PASS bar(i, i + 1) is 147
103PASS bar(i, i + 1) is 149
104PASS bar(i, i + 1) is 151
105PASS bar(i, i + 1) is 153
106PASS bar(i, i + 1) is 155
107PASS bar(i, i + 1) is 157
108PASS bar(i, i + 1) is 159
109PASS bar(i, i + 1) is 161
110PASS bar(i, i + 1) is 163
111PASS bar(i, i + 1) is 165
112PASS bar(i, i + 1) is 167
113PASS bar(i, i + 1) is 169
114PASS bar(i, i + 1) is 171
115PASS bar(i, i + 1) is 173
116PASS bar(i, i + 1) is 175
117PASS bar(i, i + 1) is 177
118PASS bar(i, i + 1) is 179
119PASS bar(i, i + 1) is 181
120PASS bar(i, i + 1) is 183
121PASS bar(i, i + 1) is 185
122PASS bar(i, i + 1) is 187
123PASS bar(i, i + 1) is 189
124PASS bar(i, i + 1) is 191
125PASS bar(i, i + 1) is 193
126PASS bar(i, i + 1) is 195
127PASS bar(i, i + 1) is 197
128PASS bar(i, i + 1) is 199
129PASS bar(i, i + 1) is 201
130PASS bar(i, i + 1) is 203
131PASS bar(i, i + 1) is 205
132PASS bar(i, i + 1) is 207
133PASS bar(i, i + 1) is 209
134PASS bar(i, i + 1) is 211
135PASS bar(i, i + 1) is 213
136PASS bar(i, i + 1) is 215
137PASS bar(i, i + 1) is 217
138PASS bar(i, i + 1) is 219
139PASS bar(i, i + 1) is 221
140PASS bar(i, i + 1) is 223
141PASS bar(i, i + 1) is 225
142PASS bar(i, i + 1) is 227
143PASS bar(i, i + 1) is 229
144PASS bar(i, i + 1) is 231
145PASS bar(i, i + 1) is 233
146PASS bar(i, i + 1) is 235
147PASS bar(i, i + 1) is 237
148PASS bar(i, i + 1) is 239
149PASS bar(i, i + 1) is 241
150PASS bar(i, i + 1) is 243
151PASS bar(i, i + 1) is 245
152PASS bar(i, i + 1) is 247
153PASS bar(i, i + 1) is 249
154PASS bar(i, i + 1) is 251
155PASS bar(i, i + 1) is 253
156PASS bar(i, i + 1) is 255
157PASS bar(i, i + 1) is 257
158PASS bar(i, i + 1) is 259
159PASS bar(i, i + 1) is 261
160PASS bar(i, i + 1) is 263
161PASS bar(i, i + 1) is 265
162PASS bar(i, i + 1) is 267
163PASS bar(i, i + 1) is 269
164PASS bar(i, i + 1) is 271
165PASS bar(i, i + 1) is 273
166PASS bar(i, i + 1) is 275
167PASS bar(i, i + 1) is 277
168PASS bar(i, i + 1) is 279
169PASS bar(i, i + 1) is 281
170PASS bar(i, i + 1) is 283
171PASS bar(i, i + 1) is 285
172PASS bar(i, i + 1) is 287
173PASS bar(i, i + 1) is 289
174PASS bar(i, i + 1) is 291
175PASS bar(i, i + 1) is 293
176PASS bar(i, i + 1) is 295
177PASS bar(i, i + 1) is 297
178PASS bar(i, i + 1) is 299
179PASS bar(i, i + 1) is -1
180PASS bar(i, i + 1) is -1
181PASS bar(i, i + 1) is -1
182PASS bar(i, i + 1) is -1
183PASS bar(i, i + 1) is -1
184PASS bar(i, i + 1) is -1
185PASS bar(i, i + 1) is -1
186PASS bar(i, i + 1) is -1
187PASS bar(i, i + 1) is -1
188PASS bar(i, i + 1) is -1
189PASS bar(i, i + 1) is -1
190PASS bar(i, i + 1) is -1
191PASS bar(i, i + 1) is -1
192PASS bar(i, i + 1) is -1
193PASS bar(i, i + 1) is -1
194PASS bar(i, i + 1) is -1
195PASS bar(i, i + 1) is -1
196PASS bar(i, i + 1) is -1
197PASS bar(i, i + 1) is -1
198PASS bar(i, i + 1) is -1
199PASS bar(i, i + 1) is -1
200PASS bar(i, i + 1) is -1
201PASS bar(i, i + 1) is -1
202PASS bar(i, i + 1) is -1
203PASS bar(i, i + 1) is -1
204PASS bar(i, i + 1) is -1
205PASS bar(i, i + 1) is -1
206PASS bar(i, i + 1) is -1
207PASS bar(i, i + 1) is -1
208PASS bar(i, i + 1) is -1
209PASS bar(i, i + 1) is -1
210PASS bar(i, i + 1) is -1
211PASS bar(i, i + 1) is -1
212PASS bar(i, i + 1) is -1
213PASS bar(i, i + 1) is -1
214PASS bar(i, i + 1) is -1
215PASS bar(i, i + 1) is -1
216PASS bar(i, i + 1) is -1
217PASS bar(i, i + 1) is -1
218PASS bar(i, i + 1) is -1
219PASS bar(i, i + 1) is -1
220PASS bar(i, i + 1) is -1
221PASS bar(i, i + 1) is -1
222PASS bar(i, i + 1) is -1
223PASS bar(i, i + 1) is -1
224PASS bar(i, i + 1) is -1
225PASS bar(i, i + 1) is -1
226PASS bar(i, i + 1) is -1
227PASS bar(i, i + 1) is -1
228PASS bar(i, i + 1) is -1
229PASS successfullyParsed is true
230
231TEST COMPLETE
232
233