hamster 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +16 -0
- data/README.rdoc +10 -10
- data/lib/hamster/core_ext/enumerable.rb +1 -1
- data/lib/hamster/core_ext/enumerable.rbc +481 -0
- data/lib/hamster/core_ext/io.rb +0 -1
- data/lib/hamster/core_ext/io.rbc +604 -0
- data/lib/hamster/hash.rb +6 -6
- data/lib/hamster/hash.rbc +3117 -0
- data/lib/hamster/list.rb +50 -14
- data/lib/hamster/list.rbc +7274 -0
- data/lib/hamster/set.rb +8 -7
- data/lib/hamster/set.rbc +3152 -0
- data/lib/hamster/stack.rbc +1358 -0
- data/lib/hamster/trie.rbc +3416 -0
- data/lib/hamster/version.rb +1 -1
- data/spec/hamster/core_ext/enumerable_spec.rb +1 -1
- data/spec/hamster/core_ext/enumerable_spec.rbc +747 -0
- data/spec/hamster/core_ext/io_spec.rbc +409 -0
- data/spec/hamster/hash/all_spec.rbc +1214 -0
- data/spec/hamster/hash/any_spec.rbc +1495 -0
- data/spec/hamster/hash/construction_spec.rbc +742 -0
- data/spec/hamster/hash/copying_spec.rbc +519 -0
- data/spec/hamster/hash/each_spec.rbc +908 -0
- data/spec/hamster/hash/empty_spec.rbc +517 -0
- data/spec/hamster/hash/eql_spec.rb +1 -1
- data/spec/hamster/hash/eql_spec.rbc +1702 -0
- data/spec/hamster/hash/filter_spec.rbc +1433 -0
- data/spec/hamster/hash/get_spec.rbc +791 -0
- data/spec/hamster/hash/has_key_spec.rbc +719 -0
- data/spec/hamster/hash/map_spec.rbc +1454 -0
- data/spec/hamster/hash/none_spec.rbc +1399 -0
- data/spec/hamster/hash/put_spec.rbc +1334 -0
- data/spec/hamster/hash/reduce_spec.rbc +1234 -0
- data/spec/hamster/hash/reject_spec.rbc +1445 -0
- data/spec/hamster/hash/remove_spec.rbc +1135 -0
- data/spec/hamster/hash/size_spec.rbc +596 -0
- data/spec/hamster/list/all_spec.rb +12 -4
- data/spec/hamster/list/all_spec.rbc +1760 -0
- data/spec/hamster/list/any_spec.rb +12 -4
- data/spec/hamster/list/any_spec.rbc +1888 -0
- data/spec/hamster/list/append_spec.rb +12 -5
- data/spec/hamster/list/append_spec.rbc +1555 -0
- data/spec/hamster/list/cadr_spec.rb +1 -1
- data/spec/hamster/list/cadr_spec.rbc +855 -0
- data/spec/hamster/list/cons_spec.rbc +848 -0
- data/spec/hamster/list/construction_spec.rbc +1732 -0
- data/spec/hamster/list/copying_spec.rbc +555 -0
- data/spec/hamster/list/drop_spec.rb +12 -4
- data/spec/hamster/list/drop_spec.rbc +1081 -0
- data/spec/hamster/list/drop_while_spec.rb +12 -4
- data/spec/hamster/list/drop_while_spec.rbc +1286 -0
- data/spec/hamster/list/each_spec.rb +13 -5
- data/spec/hamster/list/each_spec.rbc +1365 -0
- data/spec/hamster/list/empty_spec.rb +1 -1
- data/spec/hamster/list/empty_spec.rbc +571 -0
- data/spec/hamster/list/eql_spec.rb +15 -5
- data/spec/hamster/list/eql_spec.rbc +1819 -0
- data/spec/hamster/list/filter_spec.rb +13 -5
- data/spec/hamster/list/filter_spec.rbc +1595 -0
- data/spec/hamster/list/find_spec.rb +12 -4
- data/spec/hamster/list/find_spec.rbc +1456 -0
- data/spec/hamster/list/head_spec.rb +1 -1
- data/spec/hamster/list/head_spec.rbc +575 -0
- data/spec/hamster/list/include_spec.rb +12 -4
- data/spec/hamster/list/include_spec.rbc +1173 -0
- data/spec/hamster/list/inspect_spec.rb +13 -5
- data/spec/hamster/list/inspect_spec.rbc +995 -0
- data/spec/hamster/list/map_spec.rb +12 -4
- data/spec/hamster/list/map_spec.rbc +1545 -0
- data/spec/hamster/list/maximum_spec.rb +83 -0
- data/spec/hamster/list/minimum_spec.rb +83 -0
- data/spec/hamster/list/none_spec.rb +11 -3
- data/spec/hamster/list/none_spec.rbc +1788 -0
- data/spec/hamster/list/one_spec.rb +83 -0
- data/spec/hamster/list/partition_spec.rb +37 -9
- data/spec/hamster/list/partition_spec.rbc +2715 -0
- data/spec/hamster/list/reduce_spec.rb +12 -4
- data/spec/hamster/list/reduce_spec.rbc +2081 -0
- data/spec/hamster/list/reject_spec.rb +12 -4
- data/spec/hamster/list/reject_spec.rbc +1590 -0
- data/spec/hamster/list/reverse_spec.rb +12 -4
- data/spec/hamster/list/reverse_spec.rbc +1061 -0
- data/spec/hamster/list/size_spec.rb +13 -5
- data/spec/hamster/list/size_spec.rbc +1063 -0
- data/spec/hamster/list/tail_spec.rb +1 -1
- data/spec/hamster/list/tail_spec.rbc +595 -0
- data/spec/hamster/list/take_spec.rb +12 -4
- data/spec/hamster/list/take_spec.rbc +1075 -0
- data/spec/hamster/list/take_while_spec.rb +12 -4
- data/spec/hamster/list/take_while_spec.rbc +1446 -0
- data/spec/hamster/list/to_a_spec.rb +31 -19
- data/spec/hamster/list/to_a_spec.rbc +961 -0
- data/spec/hamster/list/to_ary_spec.rb +11 -3
- data/spec/hamster/list/to_ary_spec.rbc +1080 -0
- data/spec/hamster/list/to_list_spec.rb +31 -0
- data/spec/hamster/set/add_spec.rbc +1039 -0
- data/spec/hamster/set/all_spec.rbc +1316 -0
- data/spec/hamster/set/any_spec.rbc +1444 -0
- data/spec/hamster/set/construction_spec.rbc +422 -0
- data/spec/hamster/set/copying_spec.rbc +469 -0
- data/spec/hamster/set/each_spec.rbc +820 -0
- data/spec/hamster/set/empty_spec.rbc +452 -0
- data/spec/hamster/set/eql_spec.rb +1 -1
- data/spec/hamster/set/eql_spec.rbc +1309 -0
- data/spec/hamster/set/filter_spec.rbc +1272 -0
- data/spec/hamster/set/include_spec.rbc +657 -0
- data/spec/hamster/set/map_spec.rbc +1285 -0
- data/spec/hamster/set/none_spec.rbc +1344 -0
- data/spec/hamster/set/reduce_spec.rbc +1177 -0
- data/spec/hamster/set/reject_spec.rbc +1273 -0
- data/spec/hamster/set/remove_spec.rbc +947 -0
- data/spec/hamster/set/size_spec.rbc +531 -0
- data/spec/hamster/set/to_a_spec.rb +16 -12
- data/spec/hamster/set/to_a_spec.rbc +559 -0
- data/spec/hamster/stack/construction_spec.rbc +862 -0
- data/spec/hamster/stack/copying_spec.rbc +555 -0
- data/spec/hamster/stack/empty_spec.rb +1 -1
- data/spec/hamster/stack/empty_spec.rbc +571 -0
- data/spec/hamster/stack/eql_spec.rb +1 -1
- data/spec/hamster/stack/eql_spec.rbc +1281 -0
- data/spec/hamster/stack/inspect_spec.rb +1 -1
- data/spec/hamster/stack/inspect_spec.rbc +586 -0
- data/spec/hamster/stack/pop_spec.rbc +1099 -0
- data/spec/hamster/stack/push_spec.rbc +848 -0
- data/spec/hamster/stack/size_spec.rb +1 -1
- data/spec/hamster/stack/size_spec.rbc +650 -0
- data/spec/hamster/stack/top_spec.rbc +676 -0
- data/spec/hamster/trie/remove_spec.rbc +40 -0
- data/spec/spec_helper.rbc +163 -0
- data/tasks/spec.rbc +201 -0
- metadata +90 -2
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
+
|
3
|
+
require 'hamster/list'
|
4
|
+
|
5
|
+
describe Hamster::List do
|
6
|
+
|
7
|
+
describe "#to_list" do
|
8
|
+
|
9
|
+
[
|
10
|
+
[],
|
11
|
+
["A"],
|
12
|
+
["A", "B", "C"],
|
13
|
+
].each do |values|
|
14
|
+
|
15
|
+
describe "on #{values.inspect}" do
|
16
|
+
|
17
|
+
before do
|
18
|
+
@list = Hamster.list(*values)
|
19
|
+
end
|
20
|
+
|
21
|
+
it "returns self" do
|
22
|
+
@list.to_list.should equal(@list)
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,1039 @@
|
|
1
|
+
!RBIX
|
2
|
+
0
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
50
|
13
|
+
5
|
14
|
+
42
|
15
|
+
0
|
16
|
+
1
|
17
|
+
42
|
18
|
+
0
|
19
|
+
2
|
20
|
+
61
|
21
|
+
45
|
22
|
+
3
|
23
|
+
46
|
24
|
+
4
|
25
|
+
1
|
26
|
+
7
|
27
|
+
5
|
28
|
+
60
|
29
|
+
77
|
30
|
+
6
|
31
|
+
46
|
32
|
+
7
|
33
|
+
1
|
34
|
+
44
|
35
|
+
46
|
36
|
+
8
|
37
|
+
1
|
38
|
+
14
|
39
|
+
5
|
40
|
+
7
|
41
|
+
9
|
42
|
+
60
|
43
|
+
44
|
44
|
+
46
|
45
|
+
8
|
46
|
+
1
|
47
|
+
14
|
48
|
+
5
|
49
|
+
42
|
50
|
+
10
|
51
|
+
11
|
52
|
+
40
|
53
|
+
12
|
54
|
+
53
|
55
|
+
13
|
56
|
+
44
|
57
|
+
47
|
58
|
+
14
|
59
|
+
1
|
60
|
+
14
|
61
|
+
2
|
62
|
+
11
|
63
|
+
I
|
64
|
+
4
|
65
|
+
I
|
66
|
+
0
|
67
|
+
I
|
68
|
+
0
|
69
|
+
I
|
70
|
+
0
|
71
|
+
n
|
72
|
+
p
|
73
|
+
15
|
74
|
+
x
|
75
|
+
4
|
76
|
+
File
|
77
|
+
n
|
78
|
+
n
|
79
|
+
x
|
80
|
+
11
|
81
|
+
active_path
|
82
|
+
x
|
83
|
+
7
|
84
|
+
dirname
|
85
|
+
s
|
86
|
+
18
|
87
|
+
/../../spec_helper
|
88
|
+
x
|
89
|
+
1
|
90
|
+
+
|
91
|
+
x
|
92
|
+
11
|
93
|
+
expand_path
|
94
|
+
x
|
95
|
+
7
|
96
|
+
require
|
97
|
+
s
|
98
|
+
11
|
99
|
+
hamster/set
|
100
|
+
x
|
101
|
+
7
|
102
|
+
Hamster
|
103
|
+
n
|
104
|
+
x
|
105
|
+
3
|
106
|
+
Set
|
107
|
+
M
|
108
|
+
1
|
109
|
+
n
|
110
|
+
n
|
111
|
+
x
|
112
|
+
9
|
113
|
+
__block__
|
114
|
+
i
|
115
|
+
12
|
116
|
+
7
|
117
|
+
0
|
118
|
+
7
|
119
|
+
1
|
120
|
+
32
|
121
|
+
2
|
122
|
+
53
|
123
|
+
2
|
124
|
+
47
|
125
|
+
3
|
126
|
+
0
|
127
|
+
11
|
128
|
+
I
|
129
|
+
3
|
130
|
+
I
|
131
|
+
0
|
132
|
+
I
|
133
|
+
-1
|
134
|
+
I
|
135
|
+
-1
|
136
|
+
n
|
137
|
+
p
|
138
|
+
4
|
139
|
+
x
|
140
|
+
3
|
141
|
+
add
|
142
|
+
x
|
143
|
+
2
|
144
|
+
<<
|
145
|
+
M
|
146
|
+
1
|
147
|
+
n
|
148
|
+
n
|
149
|
+
x
|
150
|
+
9
|
151
|
+
__block__
|
152
|
+
i
|
153
|
+
21
|
154
|
+
54
|
155
|
+
17
|
156
|
+
0
|
157
|
+
14
|
158
|
+
5
|
159
|
+
18
|
160
|
+
0
|
161
|
+
44
|
162
|
+
45
|
163
|
+
0
|
164
|
+
7
|
165
|
+
1
|
166
|
+
60
|
167
|
+
59
|
168
|
+
53
|
169
|
+
2
|
170
|
+
44
|
171
|
+
47
|
172
|
+
3
|
173
|
+
1
|
174
|
+
11
|
175
|
+
I
|
176
|
+
5
|
177
|
+
I
|
178
|
+
1
|
179
|
+
I
|
180
|
+
1
|
181
|
+
I
|
182
|
+
1
|
183
|
+
n
|
184
|
+
p
|
185
|
+
4
|
186
|
+
x
|
187
|
+
4
|
188
|
+
to_s
|
189
|
+
s
|
190
|
+
1
|
191
|
+
#
|
192
|
+
M
|
193
|
+
1
|
194
|
+
n
|
195
|
+
n
|
196
|
+
x
|
197
|
+
9
|
198
|
+
__block__
|
199
|
+
i
|
200
|
+
30
|
201
|
+
5
|
202
|
+
53
|
203
|
+
0
|
204
|
+
44
|
205
|
+
47
|
206
|
+
1
|
207
|
+
0
|
208
|
+
14
|
209
|
+
5
|
210
|
+
7
|
211
|
+
2
|
212
|
+
60
|
213
|
+
53
|
214
|
+
3
|
215
|
+
44
|
216
|
+
47
|
217
|
+
4
|
218
|
+
1
|
219
|
+
14
|
220
|
+
5
|
221
|
+
7
|
222
|
+
5
|
223
|
+
60
|
224
|
+
53
|
225
|
+
6
|
226
|
+
44
|
227
|
+
47
|
228
|
+
4
|
229
|
+
1
|
230
|
+
11
|
231
|
+
I
|
232
|
+
4
|
233
|
+
I
|
234
|
+
0
|
235
|
+
I
|
236
|
+
-1
|
237
|
+
I
|
238
|
+
-1
|
239
|
+
n
|
240
|
+
p
|
241
|
+
7
|
242
|
+
M
|
243
|
+
1
|
244
|
+
n
|
245
|
+
n
|
246
|
+
x
|
247
|
+
9
|
248
|
+
__block__
|
249
|
+
i
|
250
|
+
18
|
251
|
+
42
|
252
|
+
0
|
253
|
+
1
|
254
|
+
7
|
255
|
+
2
|
256
|
+
60
|
257
|
+
7
|
258
|
+
3
|
259
|
+
60
|
260
|
+
7
|
261
|
+
4
|
262
|
+
60
|
263
|
+
46
|
264
|
+
5
|
265
|
+
3
|
266
|
+
35
|
267
|
+
6
|
268
|
+
11
|
269
|
+
I
|
270
|
+
5
|
271
|
+
I
|
272
|
+
0
|
273
|
+
I
|
274
|
+
-1
|
275
|
+
I
|
276
|
+
-1
|
277
|
+
n
|
278
|
+
p
|
279
|
+
7
|
280
|
+
x
|
281
|
+
7
|
282
|
+
Hamster
|
283
|
+
n
|
284
|
+
s
|
285
|
+
1
|
286
|
+
A
|
287
|
+
s
|
288
|
+
1
|
289
|
+
B
|
290
|
+
s
|
291
|
+
1
|
292
|
+
C
|
293
|
+
x
|
294
|
+
3
|
295
|
+
set
|
296
|
+
x
|
297
|
+
9
|
298
|
+
@original
|
299
|
+
p
|
300
|
+
5
|
301
|
+
I
|
302
|
+
0
|
303
|
+
I
|
304
|
+
b
|
305
|
+
I
|
306
|
+
0
|
307
|
+
I
|
308
|
+
c
|
309
|
+
I
|
310
|
+
12
|
311
|
+
x
|
312
|
+
30
|
313
|
+
./spec/hamster/set/add_spec.rb
|
314
|
+
p
|
315
|
+
0
|
316
|
+
x
|
317
|
+
6
|
318
|
+
before
|
319
|
+
s
|
320
|
+
19
|
321
|
+
with a unique value
|
322
|
+
M
|
323
|
+
1
|
324
|
+
n
|
325
|
+
n
|
326
|
+
x
|
327
|
+
9
|
328
|
+
__block__
|
329
|
+
i
|
330
|
+
30
|
331
|
+
5
|
332
|
+
53
|
333
|
+
0
|
334
|
+
44
|
335
|
+
47
|
336
|
+
1
|
337
|
+
0
|
338
|
+
14
|
339
|
+
5
|
340
|
+
7
|
341
|
+
2
|
342
|
+
60
|
343
|
+
53
|
344
|
+
3
|
345
|
+
44
|
346
|
+
47
|
347
|
+
4
|
348
|
+
1
|
349
|
+
14
|
350
|
+
5
|
351
|
+
7
|
352
|
+
5
|
353
|
+
60
|
354
|
+
53
|
355
|
+
6
|
356
|
+
44
|
357
|
+
47
|
358
|
+
4
|
359
|
+
1
|
360
|
+
11
|
361
|
+
I
|
362
|
+
4
|
363
|
+
I
|
364
|
+
0
|
365
|
+
I
|
366
|
+
-1
|
367
|
+
I
|
368
|
+
-1
|
369
|
+
n
|
370
|
+
p
|
371
|
+
7
|
372
|
+
M
|
373
|
+
1
|
374
|
+
n
|
375
|
+
n
|
376
|
+
x
|
377
|
+
9
|
378
|
+
__block__
|
379
|
+
i
|
380
|
+
14
|
381
|
+
36
|
382
|
+
0
|
383
|
+
19
|
384
|
+
3
|
385
|
+
0
|
386
|
+
7
|
387
|
+
1
|
388
|
+
60
|
389
|
+
46
|
390
|
+
2
|
391
|
+
2
|
392
|
+
35
|
393
|
+
3
|
394
|
+
11
|
395
|
+
I
|
396
|
+
4
|
397
|
+
I
|
398
|
+
0
|
399
|
+
I
|
400
|
+
-1
|
401
|
+
I
|
402
|
+
-1
|
403
|
+
n
|
404
|
+
p
|
405
|
+
4
|
406
|
+
x
|
407
|
+
9
|
408
|
+
@original
|
409
|
+
s
|
410
|
+
1
|
411
|
+
D
|
412
|
+
x
|
413
|
+
4
|
414
|
+
send
|
415
|
+
x
|
416
|
+
7
|
417
|
+
@result
|
418
|
+
p
|
419
|
+
5
|
420
|
+
I
|
421
|
+
0
|
422
|
+
I
|
423
|
+
11
|
424
|
+
I
|
425
|
+
0
|
426
|
+
I
|
427
|
+
12
|
428
|
+
I
|
429
|
+
e
|
430
|
+
x
|
431
|
+
30
|
432
|
+
./spec/hamster/set/add_spec.rb
|
433
|
+
p
|
434
|
+
0
|
435
|
+
x
|
436
|
+
6
|
437
|
+
before
|
438
|
+
s
|
439
|
+
22
|
440
|
+
preserves the original
|
441
|
+
M
|
442
|
+
1
|
443
|
+
n
|
444
|
+
n
|
445
|
+
x
|
446
|
+
9
|
447
|
+
__block__
|
448
|
+
i
|
449
|
+
22
|
450
|
+
36
|
451
|
+
0
|
452
|
+
45
|
453
|
+
1
|
454
|
+
42
|
455
|
+
2
|
456
|
+
3
|
457
|
+
7
|
458
|
+
4
|
459
|
+
60
|
460
|
+
7
|
461
|
+
5
|
462
|
+
60
|
463
|
+
7
|
464
|
+
6
|
465
|
+
60
|
466
|
+
46
|
467
|
+
7
|
468
|
+
3
|
469
|
+
79
|
470
|
+
8
|
471
|
+
11
|
472
|
+
I
|
473
|
+
6
|
474
|
+
I
|
475
|
+
0
|
476
|
+
I
|
477
|
+
-1
|
478
|
+
I
|
479
|
+
-1
|
480
|
+
n
|
481
|
+
p
|
482
|
+
9
|
483
|
+
x
|
484
|
+
9
|
485
|
+
@original
|
486
|
+
x
|
487
|
+
6
|
488
|
+
should
|
489
|
+
x
|
490
|
+
7
|
491
|
+
Hamster
|
492
|
+
n
|
493
|
+
s
|
494
|
+
1
|
495
|
+
A
|
496
|
+
s
|
497
|
+
1
|
498
|
+
B
|
499
|
+
s
|
500
|
+
1
|
501
|
+
C
|
502
|
+
x
|
503
|
+
3
|
504
|
+
set
|
505
|
+
x
|
506
|
+
2
|
507
|
+
==
|
508
|
+
p
|
509
|
+
5
|
510
|
+
I
|
511
|
+
0
|
512
|
+
I
|
513
|
+
15
|
514
|
+
I
|
515
|
+
0
|
516
|
+
I
|
517
|
+
16
|
518
|
+
I
|
519
|
+
16
|
520
|
+
x
|
521
|
+
30
|
522
|
+
./spec/hamster/set/add_spec.rb
|
523
|
+
p
|
524
|
+
0
|
525
|
+
x
|
526
|
+
2
|
527
|
+
it
|
528
|
+
s
|
529
|
+
42
|
530
|
+
returns a copy with the superset of values
|
531
|
+
M
|
532
|
+
1
|
533
|
+
n
|
534
|
+
n
|
535
|
+
x
|
536
|
+
9
|
537
|
+
__block__
|
538
|
+
i
|
539
|
+
25
|
540
|
+
36
|
541
|
+
0
|
542
|
+
45
|
543
|
+
1
|
544
|
+
42
|
545
|
+
2
|
546
|
+
3
|
547
|
+
7
|
548
|
+
4
|
549
|
+
60
|
550
|
+
7
|
551
|
+
5
|
552
|
+
60
|
553
|
+
7
|
554
|
+
6
|
555
|
+
60
|
556
|
+
7
|
557
|
+
7
|
558
|
+
60
|
559
|
+
46
|
560
|
+
8
|
561
|
+
4
|
562
|
+
79
|
563
|
+
9
|
564
|
+
11
|
565
|
+
I
|
566
|
+
7
|
567
|
+
I
|
568
|
+
0
|
569
|
+
I
|
570
|
+
-1
|
571
|
+
I
|
572
|
+
-1
|
573
|
+
n
|
574
|
+
p
|
575
|
+
10
|
576
|
+
x
|
577
|
+
7
|
578
|
+
@result
|
579
|
+
x
|
580
|
+
6
|
581
|
+
should
|
582
|
+
x
|
583
|
+
7
|
584
|
+
Hamster
|
585
|
+
n
|
586
|
+
s
|
587
|
+
1
|
588
|
+
A
|
589
|
+
s
|
590
|
+
1
|
591
|
+
B
|
592
|
+
s
|
593
|
+
1
|
594
|
+
C
|
595
|
+
s
|
596
|
+
1
|
597
|
+
D
|
598
|
+
x
|
599
|
+
3
|
600
|
+
set
|
601
|
+
x
|
602
|
+
2
|
603
|
+
==
|
604
|
+
p
|
605
|
+
5
|
606
|
+
I
|
607
|
+
0
|
608
|
+
I
|
609
|
+
19
|
610
|
+
I
|
611
|
+
0
|
612
|
+
I
|
613
|
+
1a
|
614
|
+
I
|
615
|
+
19
|
616
|
+
x
|
617
|
+
30
|
618
|
+
./spec/hamster/set/add_spec.rb
|
619
|
+
p
|
620
|
+
0
|
621
|
+
p
|
622
|
+
9
|
623
|
+
I
|
624
|
+
0
|
625
|
+
I
|
626
|
+
f
|
627
|
+
I
|
628
|
+
0
|
629
|
+
I
|
630
|
+
11
|
631
|
+
I
|
632
|
+
8
|
633
|
+
I
|
634
|
+
15
|
635
|
+
I
|
636
|
+
13
|
637
|
+
I
|
638
|
+
19
|
639
|
+
I
|
640
|
+
1e
|
641
|
+
x
|
642
|
+
30
|
643
|
+
./spec/hamster/set/add_spec.rb
|
644
|
+
p
|
645
|
+
0
|
646
|
+
x
|
647
|
+
8
|
648
|
+
describe
|
649
|
+
s
|
650
|
+
22
|
651
|
+
with a duplicate value
|
652
|
+
M
|
653
|
+
1
|
654
|
+
n
|
655
|
+
n
|
656
|
+
x
|
657
|
+
9
|
658
|
+
__block__
|
659
|
+
i
|
660
|
+
30
|
661
|
+
5
|
662
|
+
53
|
663
|
+
0
|
664
|
+
44
|
665
|
+
47
|
666
|
+
1
|
667
|
+
0
|
668
|
+
14
|
669
|
+
5
|
670
|
+
7
|
671
|
+
2
|
672
|
+
60
|
673
|
+
53
|
674
|
+
3
|
675
|
+
44
|
676
|
+
47
|
677
|
+
4
|
678
|
+
1
|
679
|
+
14
|
680
|
+
5
|
681
|
+
7
|
682
|
+
5
|
683
|
+
60
|
684
|
+
53
|
685
|
+
6
|
686
|
+
44
|
687
|
+
47
|
688
|
+
4
|
689
|
+
1
|
690
|
+
11
|
691
|
+
I
|
692
|
+
4
|
693
|
+
I
|
694
|
+
0
|
695
|
+
I
|
696
|
+
-1
|
697
|
+
I
|
698
|
+
-1
|
699
|
+
n
|
700
|
+
p
|
701
|
+
7
|
702
|
+
M
|
703
|
+
1
|
704
|
+
n
|
705
|
+
n
|
706
|
+
x
|
707
|
+
9
|
708
|
+
__block__
|
709
|
+
i
|
710
|
+
14
|
711
|
+
36
|
712
|
+
0
|
713
|
+
19
|
714
|
+
3
|
715
|
+
0
|
716
|
+
7
|
717
|
+
1
|
718
|
+
60
|
719
|
+
46
|
720
|
+
2
|
721
|
+
2
|
722
|
+
35
|
723
|
+
3
|
724
|
+
11
|
725
|
+
I
|
726
|
+
4
|
727
|
+
I
|
728
|
+
0
|
729
|
+
I
|
730
|
+
-1
|
731
|
+
I
|
732
|
+
-1
|
733
|
+
n
|
734
|
+
p
|
735
|
+
4
|
736
|
+
x
|
737
|
+
9
|
738
|
+
@original
|
739
|
+
s
|
740
|
+
1
|
741
|
+
C
|
742
|
+
x
|
743
|
+
4
|
744
|
+
send
|
745
|
+
x
|
746
|
+
7
|
747
|
+
@result
|
748
|
+
p
|
749
|
+
5
|
750
|
+
I
|
751
|
+
0
|
752
|
+
I
|
753
|
+
21
|
754
|
+
I
|
755
|
+
0
|
756
|
+
I
|
757
|
+
22
|
758
|
+
I
|
759
|
+
e
|
760
|
+
x
|
761
|
+
30
|
762
|
+
./spec/hamster/set/add_spec.rb
|
763
|
+
p
|
764
|
+
0
|
765
|
+
x
|
766
|
+
6
|
767
|
+
before
|
768
|
+
s
|
769
|
+
29
|
770
|
+
preserves the original values
|
771
|
+
M
|
772
|
+
1
|
773
|
+
n
|
774
|
+
n
|
775
|
+
x
|
776
|
+
9
|
777
|
+
__block__
|
778
|
+
i
|
779
|
+
22
|
780
|
+
36
|
781
|
+
0
|
782
|
+
45
|
783
|
+
1
|
784
|
+
42
|
785
|
+
2
|
786
|
+
3
|
787
|
+
7
|
788
|
+
4
|
789
|
+
60
|
790
|
+
7
|
791
|
+
5
|
792
|
+
60
|
793
|
+
7
|
794
|
+
6
|
795
|
+
60
|
796
|
+
46
|
797
|
+
7
|
798
|
+
3
|
799
|
+
79
|
800
|
+
8
|
801
|
+
11
|
802
|
+
I
|
803
|
+
6
|
804
|
+
I
|
805
|
+
0
|
806
|
+
I
|
807
|
+
-1
|
808
|
+
I
|
809
|
+
-1
|
810
|
+
n
|
811
|
+
p
|
812
|
+
9
|
813
|
+
x
|
814
|
+
9
|
815
|
+
@original
|
816
|
+
x
|
817
|
+
6
|
818
|
+
should
|
819
|
+
x
|
820
|
+
7
|
821
|
+
Hamster
|
822
|
+
n
|
823
|
+
s
|
824
|
+
1
|
825
|
+
A
|
826
|
+
s
|
827
|
+
1
|
828
|
+
B
|
829
|
+
s
|
830
|
+
1
|
831
|
+
C
|
832
|
+
x
|
833
|
+
3
|
834
|
+
set
|
835
|
+
x
|
836
|
+
2
|
837
|
+
==
|
838
|
+
p
|
839
|
+
5
|
840
|
+
I
|
841
|
+
0
|
842
|
+
I
|
843
|
+
25
|
844
|
+
I
|
845
|
+
0
|
846
|
+
I
|
847
|
+
26
|
848
|
+
I
|
849
|
+
16
|
850
|
+
x
|
851
|
+
30
|
852
|
+
./spec/hamster/set/add_spec.rb
|
853
|
+
p
|
854
|
+
0
|
855
|
+
x
|
856
|
+
2
|
857
|
+
it
|
858
|
+
s
|
859
|
+
12
|
860
|
+
returns self
|
861
|
+
M
|
862
|
+
1
|
863
|
+
n
|
864
|
+
n
|
865
|
+
x
|
866
|
+
9
|
867
|
+
__block__
|
868
|
+
i
|
869
|
+
13
|
870
|
+
36
|
871
|
+
0
|
872
|
+
5
|
873
|
+
36
|
874
|
+
1
|
875
|
+
44
|
876
|
+
46
|
877
|
+
2
|
878
|
+
1
|
879
|
+
46
|
880
|
+
3
|
881
|
+
1
|
882
|
+
11
|
883
|
+
I
|
884
|
+
4
|
885
|
+
I
|
886
|
+
0
|
887
|
+
I
|
888
|
+
-1
|
889
|
+
I
|
890
|
+
-1
|
891
|
+
n
|
892
|
+
p
|
893
|
+
4
|
894
|
+
x
|
895
|
+
7
|
896
|
+
@result
|
897
|
+
x
|
898
|
+
9
|
899
|
+
@original
|
900
|
+
x
|
901
|
+
5
|
902
|
+
equal
|
903
|
+
x
|
904
|
+
6
|
905
|
+
should
|
906
|
+
p
|
907
|
+
5
|
908
|
+
I
|
909
|
+
0
|
910
|
+
I
|
911
|
+
29
|
912
|
+
I
|
913
|
+
0
|
914
|
+
I
|
915
|
+
2a
|
916
|
+
I
|
917
|
+
d
|
918
|
+
x
|
919
|
+
30
|
920
|
+
./spec/hamster/set/add_spec.rb
|
921
|
+
p
|
922
|
+
0
|
923
|
+
p
|
924
|
+
9
|
925
|
+
I
|
926
|
+
0
|
927
|
+
I
|
928
|
+
1f
|
929
|
+
I
|
930
|
+
0
|
931
|
+
I
|
932
|
+
21
|
933
|
+
I
|
934
|
+
8
|
935
|
+
I
|
936
|
+
25
|
937
|
+
I
|
938
|
+
13
|
939
|
+
I
|
940
|
+
29
|
941
|
+
I
|
942
|
+
1e
|
943
|
+
x
|
944
|
+
30
|
945
|
+
./spec/hamster/set/add_spec.rb
|
946
|
+
p
|
947
|
+
0
|
948
|
+
p
|
949
|
+
9
|
950
|
+
I
|
951
|
+
0
|
952
|
+
I
|
953
|
+
9
|
954
|
+
I
|
955
|
+
0
|
956
|
+
I
|
957
|
+
b
|
958
|
+
I
|
959
|
+
8
|
960
|
+
I
|
961
|
+
f
|
962
|
+
I
|
963
|
+
13
|
964
|
+
I
|
965
|
+
1f
|
966
|
+
I
|
967
|
+
1e
|
968
|
+
x
|
969
|
+
30
|
970
|
+
./spec/hamster/set/add_spec.rb
|
971
|
+
p
|
972
|
+
0
|
973
|
+
x
|
974
|
+
8
|
975
|
+
describe
|
976
|
+
p
|
977
|
+
5
|
978
|
+
I
|
979
|
+
0
|
980
|
+
I
|
981
|
+
7
|
982
|
+
I
|
983
|
+
4
|
984
|
+
I
|
985
|
+
9
|
986
|
+
I
|
987
|
+
15
|
988
|
+
x
|
989
|
+
30
|
990
|
+
./spec/hamster/set/add_spec.rb
|
991
|
+
p
|
992
|
+
1
|
993
|
+
x
|
994
|
+
6
|
995
|
+
method
|
996
|
+
x
|
997
|
+
4
|
998
|
+
each
|
999
|
+
p
|
1000
|
+
5
|
1001
|
+
I
|
1002
|
+
0
|
1003
|
+
I
|
1004
|
+
5
|
1005
|
+
I
|
1006
|
+
0
|
1007
|
+
I
|
1008
|
+
7
|
1009
|
+
I
|
1010
|
+
c
|
1011
|
+
x
|
1012
|
+
30
|
1013
|
+
./spec/hamster/set/add_spec.rb
|
1014
|
+
p
|
1015
|
+
0
|
1016
|
+
x
|
1017
|
+
8
|
1018
|
+
describe
|
1019
|
+
p
|
1020
|
+
7
|
1021
|
+
I
|
1022
|
+
0
|
1023
|
+
I
|
1024
|
+
1
|
1025
|
+
I
|
1026
|
+
1a
|
1027
|
+
I
|
1028
|
+
3
|
1029
|
+
I
|
1030
|
+
23
|
1031
|
+
I
|
1032
|
+
5
|
1033
|
+
I
|
1034
|
+
32
|
1035
|
+
x
|
1036
|
+
30
|
1037
|
+
./spec/hamster/set/add_spec.rb
|
1038
|
+
p
|
1039
|
+
0
|