hamster 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/History.rdoc +16 -0
  2. data/README.rdoc +10 -10
  3. data/lib/hamster/core_ext/enumerable.rb +1 -1
  4. data/lib/hamster/core_ext/enumerable.rbc +481 -0
  5. data/lib/hamster/core_ext/io.rb +0 -1
  6. data/lib/hamster/core_ext/io.rbc +604 -0
  7. data/lib/hamster/hash.rb +6 -6
  8. data/lib/hamster/hash.rbc +3117 -0
  9. data/lib/hamster/list.rb +50 -14
  10. data/lib/hamster/list.rbc +7274 -0
  11. data/lib/hamster/set.rb +8 -7
  12. data/lib/hamster/set.rbc +3152 -0
  13. data/lib/hamster/stack.rbc +1358 -0
  14. data/lib/hamster/trie.rbc +3416 -0
  15. data/lib/hamster/version.rb +1 -1
  16. data/spec/hamster/core_ext/enumerable_spec.rb +1 -1
  17. data/spec/hamster/core_ext/enumerable_spec.rbc +747 -0
  18. data/spec/hamster/core_ext/io_spec.rbc +409 -0
  19. data/spec/hamster/hash/all_spec.rbc +1214 -0
  20. data/spec/hamster/hash/any_spec.rbc +1495 -0
  21. data/spec/hamster/hash/construction_spec.rbc +742 -0
  22. data/spec/hamster/hash/copying_spec.rbc +519 -0
  23. data/spec/hamster/hash/each_spec.rbc +908 -0
  24. data/spec/hamster/hash/empty_spec.rbc +517 -0
  25. data/spec/hamster/hash/eql_spec.rb +1 -1
  26. data/spec/hamster/hash/eql_spec.rbc +1702 -0
  27. data/spec/hamster/hash/filter_spec.rbc +1433 -0
  28. data/spec/hamster/hash/get_spec.rbc +791 -0
  29. data/spec/hamster/hash/has_key_spec.rbc +719 -0
  30. data/spec/hamster/hash/map_spec.rbc +1454 -0
  31. data/spec/hamster/hash/none_spec.rbc +1399 -0
  32. data/spec/hamster/hash/put_spec.rbc +1334 -0
  33. data/spec/hamster/hash/reduce_spec.rbc +1234 -0
  34. data/spec/hamster/hash/reject_spec.rbc +1445 -0
  35. data/spec/hamster/hash/remove_spec.rbc +1135 -0
  36. data/spec/hamster/hash/size_spec.rbc +596 -0
  37. data/spec/hamster/list/all_spec.rb +12 -4
  38. data/spec/hamster/list/all_spec.rbc +1760 -0
  39. data/spec/hamster/list/any_spec.rb +12 -4
  40. data/spec/hamster/list/any_spec.rbc +1888 -0
  41. data/spec/hamster/list/append_spec.rb +12 -5
  42. data/spec/hamster/list/append_spec.rbc +1555 -0
  43. data/spec/hamster/list/cadr_spec.rb +1 -1
  44. data/spec/hamster/list/cadr_spec.rbc +855 -0
  45. data/spec/hamster/list/cons_spec.rbc +848 -0
  46. data/spec/hamster/list/construction_spec.rbc +1732 -0
  47. data/spec/hamster/list/copying_spec.rbc +555 -0
  48. data/spec/hamster/list/drop_spec.rb +12 -4
  49. data/spec/hamster/list/drop_spec.rbc +1081 -0
  50. data/spec/hamster/list/drop_while_spec.rb +12 -4
  51. data/spec/hamster/list/drop_while_spec.rbc +1286 -0
  52. data/spec/hamster/list/each_spec.rb +13 -5
  53. data/spec/hamster/list/each_spec.rbc +1365 -0
  54. data/spec/hamster/list/empty_spec.rb +1 -1
  55. data/spec/hamster/list/empty_spec.rbc +571 -0
  56. data/spec/hamster/list/eql_spec.rb +15 -5
  57. data/spec/hamster/list/eql_spec.rbc +1819 -0
  58. data/spec/hamster/list/filter_spec.rb +13 -5
  59. data/spec/hamster/list/filter_spec.rbc +1595 -0
  60. data/spec/hamster/list/find_spec.rb +12 -4
  61. data/spec/hamster/list/find_spec.rbc +1456 -0
  62. data/spec/hamster/list/head_spec.rb +1 -1
  63. data/spec/hamster/list/head_spec.rbc +575 -0
  64. data/spec/hamster/list/include_spec.rb +12 -4
  65. data/spec/hamster/list/include_spec.rbc +1173 -0
  66. data/spec/hamster/list/inspect_spec.rb +13 -5
  67. data/spec/hamster/list/inspect_spec.rbc +995 -0
  68. data/spec/hamster/list/map_spec.rb +12 -4
  69. data/spec/hamster/list/map_spec.rbc +1545 -0
  70. data/spec/hamster/list/maximum_spec.rb +83 -0
  71. data/spec/hamster/list/minimum_spec.rb +83 -0
  72. data/spec/hamster/list/none_spec.rb +11 -3
  73. data/spec/hamster/list/none_spec.rbc +1788 -0
  74. data/spec/hamster/list/one_spec.rb +83 -0
  75. data/spec/hamster/list/partition_spec.rb +37 -9
  76. data/spec/hamster/list/partition_spec.rbc +2715 -0
  77. data/spec/hamster/list/reduce_spec.rb +12 -4
  78. data/spec/hamster/list/reduce_spec.rbc +2081 -0
  79. data/spec/hamster/list/reject_spec.rb +12 -4
  80. data/spec/hamster/list/reject_spec.rbc +1590 -0
  81. data/spec/hamster/list/reverse_spec.rb +12 -4
  82. data/spec/hamster/list/reverse_spec.rbc +1061 -0
  83. data/spec/hamster/list/size_spec.rb +13 -5
  84. data/spec/hamster/list/size_spec.rbc +1063 -0
  85. data/spec/hamster/list/tail_spec.rb +1 -1
  86. data/spec/hamster/list/tail_spec.rbc +595 -0
  87. data/spec/hamster/list/take_spec.rb +12 -4
  88. data/spec/hamster/list/take_spec.rbc +1075 -0
  89. data/spec/hamster/list/take_while_spec.rb +12 -4
  90. data/spec/hamster/list/take_while_spec.rbc +1446 -0
  91. data/spec/hamster/list/to_a_spec.rb +31 -19
  92. data/spec/hamster/list/to_a_spec.rbc +961 -0
  93. data/spec/hamster/list/to_ary_spec.rb +11 -3
  94. data/spec/hamster/list/to_ary_spec.rbc +1080 -0
  95. data/spec/hamster/list/to_list_spec.rb +31 -0
  96. data/spec/hamster/set/add_spec.rbc +1039 -0
  97. data/spec/hamster/set/all_spec.rbc +1316 -0
  98. data/spec/hamster/set/any_spec.rbc +1444 -0
  99. data/spec/hamster/set/construction_spec.rbc +422 -0
  100. data/spec/hamster/set/copying_spec.rbc +469 -0
  101. data/spec/hamster/set/each_spec.rbc +820 -0
  102. data/spec/hamster/set/empty_spec.rbc +452 -0
  103. data/spec/hamster/set/eql_spec.rb +1 -1
  104. data/spec/hamster/set/eql_spec.rbc +1309 -0
  105. data/spec/hamster/set/filter_spec.rbc +1272 -0
  106. data/spec/hamster/set/include_spec.rbc +657 -0
  107. data/spec/hamster/set/map_spec.rbc +1285 -0
  108. data/spec/hamster/set/none_spec.rbc +1344 -0
  109. data/spec/hamster/set/reduce_spec.rbc +1177 -0
  110. data/spec/hamster/set/reject_spec.rbc +1273 -0
  111. data/spec/hamster/set/remove_spec.rbc +947 -0
  112. data/spec/hamster/set/size_spec.rbc +531 -0
  113. data/spec/hamster/set/to_a_spec.rb +16 -12
  114. data/spec/hamster/set/to_a_spec.rbc +559 -0
  115. data/spec/hamster/stack/construction_spec.rbc +862 -0
  116. data/spec/hamster/stack/copying_spec.rbc +555 -0
  117. data/spec/hamster/stack/empty_spec.rb +1 -1
  118. data/spec/hamster/stack/empty_spec.rbc +571 -0
  119. data/spec/hamster/stack/eql_spec.rb +1 -1
  120. data/spec/hamster/stack/eql_spec.rbc +1281 -0
  121. data/spec/hamster/stack/inspect_spec.rb +1 -1
  122. data/spec/hamster/stack/inspect_spec.rbc +586 -0
  123. data/spec/hamster/stack/pop_spec.rbc +1099 -0
  124. data/spec/hamster/stack/push_spec.rbc +848 -0
  125. data/spec/hamster/stack/size_spec.rb +1 -1
  126. data/spec/hamster/stack/size_spec.rbc +650 -0
  127. data/spec/hamster/stack/top_spec.rbc +676 -0
  128. data/spec/hamster/trie/remove_spec.rbc +40 -0
  129. data/spec/spec_helper.rbc +163 -0
  130. data/tasks/spec.rbc +201 -0
  131. metadata +90 -2
@@ -6,14 +6,22 @@ describe Hamster::List do
6
6
 
7
7
  describe "#all?" do
8
8
 
9
- describe "on a really big list" do
9
+ describe "doesn't run out of stack space on a really big" do
10
10
 
11
11
  before do
12
- @list = Hamster.interval(0, 10000)
12
+ @interval = Hamster.interval(0, 10000)
13
13
  end
14
14
 
15
- it "doesn't run out of stack space" do
16
- @list.all? { true }
15
+ it "stream" do
16
+ @list = @interval
17
+ end
18
+
19
+ it "list" do
20
+ @list = @interval.reduce(Hamster.list) { |list, i| list.cons(i) }
21
+ end
22
+
23
+ after do
24
+ @interval.all? { true }
17
25
  end
18
26
 
19
27
  end
@@ -0,0 +1,1760 @@
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
+ 12
99
+ hamster/list
100
+ x
101
+ 7
102
+ Hamster
103
+ n
104
+ x
105
+ 4
106
+ List
107
+ M
108
+ 1
109
+ n
110
+ n
111
+ x
112
+ 9
113
+ __block__
114
+ i
115
+ 11
116
+ 5
117
+ 7
118
+ 0
119
+ 60
120
+ 53
121
+ 1
122
+ 44
123
+ 47
124
+ 2
125
+ 1
126
+ 11
127
+ I
128
+ 4
129
+ I
130
+ 0
131
+ I
132
+ -1
133
+ I
134
+ -1
135
+ n
136
+ p
137
+ 3
138
+ s
139
+ 5
140
+ #all?
141
+ M
142
+ 1
143
+ n
144
+ n
145
+ x
146
+ 9
147
+ __block__
148
+ i
149
+ 33
150
+ 5
151
+ 7
152
+ 0
153
+ 60
154
+ 53
155
+ 1
156
+ 44
157
+ 47
158
+ 2
159
+ 1
160
+ 14
161
+ 5
162
+ 7
163
+ 3
164
+ 60
165
+ 53
166
+ 4
167
+ 44
168
+ 47
169
+ 2
170
+ 1
171
+ 14
172
+ 5
173
+ 7
174
+ 5
175
+ 60
176
+ 53
177
+ 6
178
+ 44
179
+ 47
180
+ 2
181
+ 1
182
+ 11
183
+ I
184
+ 4
185
+ I
186
+ 0
187
+ I
188
+ -1
189
+ I
190
+ -1
191
+ n
192
+ p
193
+ 7
194
+ s
195
+ 46
196
+ doesn't run out of stack space on a really big
197
+ M
198
+ 1
199
+ n
200
+ n
201
+ x
202
+ 9
203
+ __block__
204
+ i
205
+ 38
206
+ 5
207
+ 53
208
+ 0
209
+ 44
210
+ 47
211
+ 1
212
+ 0
213
+ 14
214
+ 5
215
+ 7
216
+ 2
217
+ 60
218
+ 53
219
+ 3
220
+ 44
221
+ 47
222
+ 4
223
+ 1
224
+ 14
225
+ 5
226
+ 7
227
+ 5
228
+ 60
229
+ 53
230
+ 6
231
+ 44
232
+ 47
233
+ 4
234
+ 1
235
+ 14
236
+ 5
237
+ 53
238
+ 7
239
+ 44
240
+ 47
241
+ 8
242
+ 0
243
+ 11
244
+ I
245
+ 4
246
+ I
247
+ 0
248
+ I
249
+ -1
250
+ I
251
+ -1
252
+ n
253
+ p
254
+ 9
255
+ M
256
+ 1
257
+ n
258
+ n
259
+ x
260
+ 9
261
+ __block__
262
+ i
263
+ 12
264
+ 42
265
+ 0
266
+ 1
267
+ 74
268
+ 7
269
+ 2
270
+ 46
271
+ 3
272
+ 2
273
+ 35
274
+ 4
275
+ 11
276
+ I
277
+ 4
278
+ I
279
+ 0
280
+ I
281
+ -1
282
+ I
283
+ -1
284
+ n
285
+ p
286
+ 5
287
+ x
288
+ 7
289
+ Hamster
290
+ n
291
+ I
292
+ 2710
293
+ x
294
+ 8
295
+ interval
296
+ x
297
+ 9
298
+ @interval
299
+ p
300
+ 5
301
+ I
302
+ 0
303
+ I
304
+ b
305
+ I
306
+ 0
307
+ I
308
+ c
309
+ I
310
+ c
311
+ x
312
+ 31
313
+ ./spec/hamster/list/all_spec.rb
314
+ p
315
+ 0
316
+ x
317
+ 6
318
+ before
319
+ s
320
+ 8
321
+ interval
322
+ M
323
+ 1
324
+ n
325
+ n
326
+ x
327
+ 9
328
+ __block__
329
+ i
330
+ 5
331
+ 36
332
+ 0
333
+ 35
334
+ 1
335
+ 11
336
+ I
337
+ 2
338
+ I
339
+ 0
340
+ I
341
+ -1
342
+ I
343
+ -1
344
+ n
345
+ p
346
+ 2
347
+ x
348
+ 9
349
+ @interval
350
+ x
351
+ 5
352
+ @list
353
+ p
354
+ 5
355
+ I
356
+ 0
357
+ I
358
+ f
359
+ I
360
+ 0
361
+ I
362
+ 10
363
+ I
364
+ 5
365
+ x
366
+ 31
367
+ ./spec/hamster/list/all_spec.rb
368
+ p
369
+ 0
370
+ x
371
+ 2
372
+ it
373
+ s
374
+ 4
375
+ list
376
+ M
377
+ 1
378
+ n
379
+ n
380
+ x
381
+ 9
382
+ __block__
383
+ i
384
+ 15
385
+ 36
386
+ 0
387
+ 42
388
+ 1
389
+ 2
390
+ 45
391
+ 3
392
+ 53
393
+ 4
394
+ 47
395
+ 5
396
+ 1
397
+ 35
398
+ 6
399
+ 11
400
+ I
401
+ 4
402
+ I
403
+ 0
404
+ I
405
+ -1
406
+ I
407
+ -1
408
+ n
409
+ p
410
+ 7
411
+ x
412
+ 9
413
+ @interval
414
+ x
415
+ 7
416
+ Hamster
417
+ n
418
+ x
419
+ 4
420
+ list
421
+ M
422
+ 1
423
+ n
424
+ n
425
+ x
426
+ 9
427
+ __block__
428
+ i
429
+ 19
430
+ 55
431
+ 33
432
+ 34
433
+ 17
434
+ 0
435
+ 14
436
+ 34
437
+ 17
438
+ 1
439
+ 14
440
+ 14
441
+ 18
442
+ 0
443
+ 18
444
+ 1
445
+ 46
446
+ 0
447
+ 1
448
+ 11
449
+ I
450
+ 5
451
+ I
452
+ 2
453
+ I
454
+ 2
455
+ I
456
+ 2
457
+ n
458
+ p
459
+ 1
460
+ x
461
+ 4
462
+ cons
463
+ p
464
+ 3
465
+ I
466
+ 0
467
+ I
468
+ 14
469
+ I
470
+ 13
471
+ x
472
+ 31
473
+ ./spec/hamster/list/all_spec.rb
474
+ p
475
+ 2
476
+ x
477
+ 4
478
+ list
479
+ x
480
+ 1
481
+ i
482
+ x
483
+ 6
484
+ reduce
485
+ x
486
+ 5
487
+ @list
488
+ p
489
+ 5
490
+ I
491
+ 0
492
+ I
493
+ 13
494
+ I
495
+ 0
496
+ I
497
+ 14
498
+ I
499
+ f
500
+ x
501
+ 31
502
+ ./spec/hamster/list/all_spec.rb
503
+ p
504
+ 0
505
+ M
506
+ 1
507
+ n
508
+ n
509
+ x
510
+ 9
511
+ __block__
512
+ i
513
+ 8
514
+ 36
515
+ 0
516
+ 53
517
+ 1
518
+ 47
519
+ 2
520
+ 0
521
+ 11
522
+ I
523
+ 3
524
+ I
525
+ 0
526
+ I
527
+ -1
528
+ I
529
+ -1
530
+ n
531
+ p
532
+ 3
533
+ x
534
+ 9
535
+ @interval
536
+ M
537
+ 1
538
+ n
539
+ n
540
+ x
541
+ 9
542
+ __block__
543
+ i
544
+ 2
545
+ 2
546
+ 11
547
+ I
548
+ 2
549
+ I
550
+ 0
551
+ I
552
+ -1
553
+ I
554
+ -1
555
+ n
556
+ p
557
+ 0
558
+ p
559
+ 3
560
+ I
561
+ 0
562
+ I
563
+ 18
564
+ I
565
+ 2
566
+ x
567
+ 31
568
+ ./spec/hamster/list/all_spec.rb
569
+ p
570
+ 0
571
+ x
572
+ 4
573
+ all?
574
+ p
575
+ 5
576
+ I
577
+ 0
578
+ I
579
+ 17
580
+ I
581
+ 0
582
+ I
583
+ 18
584
+ I
585
+ 8
586
+ x
587
+ 31
588
+ ./spec/hamster/list/all_spec.rb
589
+ p
590
+ 0
591
+ x
592
+ 5
593
+ after
594
+ p
595
+ 11
596
+ I
597
+ 0
598
+ I
599
+ 9
600
+ I
601
+ 0
602
+ I
603
+ b
604
+ I
605
+ 8
606
+ I
607
+ f
608
+ I
609
+ 13
610
+ I
611
+ 13
612
+ I
613
+ 1e
614
+ I
615
+ 17
616
+ I
617
+ 26
618
+ x
619
+ 31
620
+ ./spec/hamster/list/all_spec.rb
621
+ p
622
+ 0
623
+ x
624
+ 8
625
+ describe
626
+ s
627
+ 10
628
+ when empty
629
+ M
630
+ 1
631
+ n
632
+ n
633
+ x
634
+ 9
635
+ __block__
636
+ i
637
+ 30
638
+ 5
639
+ 53
640
+ 0
641
+ 44
642
+ 47
643
+ 1
644
+ 0
645
+ 14
646
+ 5
647
+ 7
648
+ 2
649
+ 60
650
+ 53
651
+ 3
652
+ 44
653
+ 47
654
+ 4
655
+ 1
656
+ 14
657
+ 5
658
+ 7
659
+ 5
660
+ 60
661
+ 53
662
+ 6
663
+ 44
664
+ 47
665
+ 4
666
+ 1
667
+ 11
668
+ I
669
+ 4
670
+ I
671
+ 0
672
+ I
673
+ -1
674
+ I
675
+ -1
676
+ n
677
+ p
678
+ 7
679
+ M
680
+ 1
681
+ n
682
+ n
683
+ x
684
+ 9
685
+ __block__
686
+ i
687
+ 8
688
+ 42
689
+ 0
690
+ 1
691
+ 45
692
+ 2
693
+ 35
694
+ 3
695
+ 11
696
+ I
697
+ 2
698
+ I
699
+ 0
700
+ I
701
+ -1
702
+ I
703
+ -1
704
+ n
705
+ p
706
+ 4
707
+ x
708
+ 7
709
+ Hamster
710
+ n
711
+ x
712
+ 4
713
+ list
714
+ x
715
+ 5
716
+ @list
717
+ p
718
+ 5
719
+ I
720
+ 0
721
+ I
722
+ 1f
723
+ I
724
+ 0
725
+ I
726
+ 20
727
+ I
728
+ 8
729
+ x
730
+ 31
731
+ ./spec/hamster/list/all_spec.rb
732
+ p
733
+ 0
734
+ x
735
+ 6
736
+ before
737
+ s
738
+ 25
739
+ with a block returns true
740
+ M
741
+ 1
742
+ n
743
+ n
744
+ x
745
+ 9
746
+ __block__
747
+ i
748
+ 15
749
+ 36
750
+ 0
751
+ 53
752
+ 1
753
+ 47
754
+ 2
755
+ 0
756
+ 5
757
+ 44
758
+ 45
759
+ 3
760
+ 46
761
+ 4
762
+ 1
763
+ 11
764
+ I
765
+ 3
766
+ I
767
+ 0
768
+ I
769
+ -1
770
+ I
771
+ -1
772
+ n
773
+ p
774
+ 5
775
+ x
776
+ 5
777
+ @list
778
+ M
779
+ 1
780
+ n
781
+ n
782
+ x
783
+ 9
784
+ __block__
785
+ i
786
+ 2
787
+ 1
788
+ 11
789
+ I
790
+ 2
791
+ I
792
+ 0
793
+ I
794
+ -1
795
+ I
796
+ -1
797
+ n
798
+ p
799
+ 0
800
+ p
801
+ 3
802
+ I
803
+ 0
804
+ I
805
+ 24
806
+ I
807
+ 2
808
+ x
809
+ 31
810
+ ./spec/hamster/list/all_spec.rb
811
+ p
812
+ 0
813
+ x
814
+ 4
815
+ all?
816
+ x
817
+ 7
818
+ be_true
819
+ x
820
+ 6
821
+ should
822
+ p
823
+ 5
824
+ I
825
+ 0
826
+ I
827
+ 23
828
+ I
829
+ 0
830
+ I
831
+ 24
832
+ I
833
+ f
834
+ x
835
+ 31
836
+ ./spec/hamster/list/all_spec.rb
837
+ p
838
+ 0
839
+ x
840
+ 2
841
+ it
842
+ s
843
+ 26
844
+ with no block returns true
845
+ M
846
+ 1
847
+ n
848
+ n
849
+ x
850
+ 9
851
+ __block__
852
+ i
853
+ 12
854
+ 36
855
+ 0
856
+ 45
857
+ 1
858
+ 5
859
+ 44
860
+ 45
861
+ 2
862
+ 46
863
+ 3
864
+ 1
865
+ 11
866
+ I
867
+ 3
868
+ I
869
+ 0
870
+ I
871
+ -1
872
+ I
873
+ -1
874
+ n
875
+ p
876
+ 4
877
+ x
878
+ 5
879
+ @list
880
+ x
881
+ 4
882
+ all?
883
+ x
884
+ 7
885
+ be_true
886
+ x
887
+ 6
888
+ should
889
+ p
890
+ 5
891
+ I
892
+ 0
893
+ I
894
+ 27
895
+ I
896
+ 0
897
+ I
898
+ 28
899
+ I
900
+ c
901
+ x
902
+ 31
903
+ ./spec/hamster/list/all_spec.rb
904
+ p
905
+ 0
906
+ p
907
+ 9
908
+ I
909
+ 0
910
+ I
911
+ 1d
912
+ I
913
+ 0
914
+ I
915
+ 1f
916
+ I
917
+ 8
918
+ I
919
+ 23
920
+ I
921
+ 13
922
+ I
923
+ 27
924
+ I
925
+ 1e
926
+ x
927
+ 31
928
+ ./spec/hamster/list/all_spec.rb
929
+ p
930
+ 0
931
+ s
932
+ 14
933
+ when not empty
934
+ M
935
+ 1
936
+ n
937
+ n
938
+ x
939
+ 9
940
+ __block__
941
+ i
942
+ 22
943
+ 5
944
+ 7
945
+ 0
946
+ 60
947
+ 53
948
+ 1
949
+ 44
950
+ 47
951
+ 2
952
+ 1
953
+ 14
954
+ 5
955
+ 7
956
+ 3
957
+ 60
958
+ 53
959
+ 4
960
+ 44
961
+ 47
962
+ 2
963
+ 1
964
+ 11
965
+ I
966
+ 4
967
+ I
968
+ 0
969
+ I
970
+ -1
971
+ I
972
+ -1
973
+ n
974
+ p
975
+ 5
976
+ s
977
+ 12
978
+ with a block
979
+ M
980
+ 1
981
+ n
982
+ n
983
+ x
984
+ 9
985
+ __block__
986
+ i
987
+ 30
988
+ 5
989
+ 53
990
+ 0
991
+ 44
992
+ 47
993
+ 1
994
+ 0
995
+ 14
996
+ 5
997
+ 7
998
+ 2
999
+ 60
1000
+ 53
1001
+ 3
1002
+ 44
1003
+ 47
1004
+ 4
1005
+ 1
1006
+ 14
1007
+ 5
1008
+ 7
1009
+ 5
1010
+ 60
1011
+ 53
1012
+ 6
1013
+ 44
1014
+ 47
1015
+ 4
1016
+ 1
1017
+ 11
1018
+ I
1019
+ 4
1020
+ I
1021
+ 0
1022
+ I
1023
+ -1
1024
+ I
1025
+ -1
1026
+ n
1027
+ p
1028
+ 7
1029
+ M
1030
+ 1
1031
+ n
1032
+ n
1033
+ x
1034
+ 9
1035
+ __block__
1036
+ i
1037
+ 18
1038
+ 42
1039
+ 0
1040
+ 1
1041
+ 7
1042
+ 2
1043
+ 60
1044
+ 7
1045
+ 3
1046
+ 60
1047
+ 7
1048
+ 4
1049
+ 60
1050
+ 46
1051
+ 5
1052
+ 3
1053
+ 35
1054
+ 6
1055
+ 11
1056
+ I
1057
+ 5
1058
+ I
1059
+ 0
1060
+ I
1061
+ -1
1062
+ I
1063
+ -1
1064
+ n
1065
+ p
1066
+ 7
1067
+ x
1068
+ 7
1069
+ Hamster
1070
+ n
1071
+ s
1072
+ 1
1073
+ A
1074
+ s
1075
+ 1
1076
+ B
1077
+ s
1078
+ 1
1079
+ C
1080
+ x
1081
+ 4
1082
+ list
1083
+ x
1084
+ 5
1085
+ @list
1086
+ p
1087
+ 5
1088
+ I
1089
+ 0
1090
+ I
1091
+ 31
1092
+ I
1093
+ 0
1094
+ I
1095
+ 32
1096
+ I
1097
+ 12
1098
+ x
1099
+ 31
1100
+ ./spec/hamster/list/all_spec.rb
1101
+ p
1102
+ 0
1103
+ x
1104
+ 6
1105
+ before
1106
+ s
1107
+ 45
1108
+ returns true if the block always returns true
1109
+ M
1110
+ 1
1111
+ n
1112
+ n
1113
+ x
1114
+ 9
1115
+ __block__
1116
+ i
1117
+ 15
1118
+ 36
1119
+ 0
1120
+ 53
1121
+ 1
1122
+ 47
1123
+ 2
1124
+ 0
1125
+ 5
1126
+ 44
1127
+ 45
1128
+ 3
1129
+ 46
1130
+ 4
1131
+ 1
1132
+ 11
1133
+ I
1134
+ 3
1135
+ I
1136
+ 0
1137
+ I
1138
+ -1
1139
+ I
1140
+ -1
1141
+ n
1142
+ p
1143
+ 5
1144
+ x
1145
+ 5
1146
+ @list
1147
+ M
1148
+ 1
1149
+ n
1150
+ n
1151
+ x
1152
+ 9
1153
+ __block__
1154
+ i
1155
+ 6
1156
+ 54
1157
+ 17
1158
+ 0
1159
+ 14
1160
+ 2
1161
+ 11
1162
+ I
1163
+ 3
1164
+ I
1165
+ 1
1166
+ I
1167
+ 1
1168
+ I
1169
+ 1
1170
+ n
1171
+ p
1172
+ 0
1173
+ p
1174
+ 3
1175
+ I
1176
+ 0
1177
+ I
1178
+ 36
1179
+ I
1180
+ 6
1181
+ x
1182
+ 31
1183
+ ./spec/hamster/list/all_spec.rb
1184
+ p
1185
+ 1
1186
+ x
1187
+ 4
1188
+ item
1189
+ x
1190
+ 4
1191
+ all?
1192
+ x
1193
+ 7
1194
+ be_true
1195
+ x
1196
+ 6
1197
+ should
1198
+ p
1199
+ 5
1200
+ I
1201
+ 0
1202
+ I
1203
+ 35
1204
+ I
1205
+ 0
1206
+ I
1207
+ 36
1208
+ I
1209
+ f
1210
+ x
1211
+ 31
1212
+ ./spec/hamster/list/all_spec.rb
1213
+ p
1214
+ 0
1215
+ x
1216
+ 2
1217
+ it
1218
+ s
1219
+ 45
1220
+ returns false if the block ever returns false
1221
+ M
1222
+ 1
1223
+ n
1224
+ n
1225
+ x
1226
+ 9
1227
+ __block__
1228
+ i
1229
+ 15
1230
+ 36
1231
+ 0
1232
+ 53
1233
+ 1
1234
+ 47
1235
+ 2
1236
+ 0
1237
+ 5
1238
+ 44
1239
+ 45
1240
+ 3
1241
+ 46
1242
+ 4
1243
+ 1
1244
+ 11
1245
+ I
1246
+ 3
1247
+ I
1248
+ 0
1249
+ I
1250
+ -1
1251
+ I
1252
+ -1
1253
+ n
1254
+ p
1255
+ 5
1256
+ x
1257
+ 5
1258
+ @list
1259
+ M
1260
+ 1
1261
+ n
1262
+ n
1263
+ x
1264
+ 9
1265
+ __block__
1266
+ i
1267
+ 12
1268
+ 54
1269
+ 17
1270
+ 0
1271
+ 14
1272
+ 18
1273
+ 0
1274
+ 7
1275
+ 0
1276
+ 60
1277
+ 79
1278
+ 1
1279
+ 11
1280
+ I
1281
+ 4
1282
+ I
1283
+ 1
1284
+ I
1285
+ 1
1286
+ I
1287
+ 1
1288
+ n
1289
+ p
1290
+ 2
1291
+ s
1292
+ 1
1293
+ D
1294
+ x
1295
+ 2
1296
+ ==
1297
+ p
1298
+ 3
1299
+ I
1300
+ 0
1301
+ I
1302
+ 3a
1303
+ I
1304
+ c
1305
+ x
1306
+ 31
1307
+ ./spec/hamster/list/all_spec.rb
1308
+ p
1309
+ 1
1310
+ x
1311
+ 4
1312
+ item
1313
+ x
1314
+ 4
1315
+ all?
1316
+ x
1317
+ 8
1318
+ be_false
1319
+ x
1320
+ 6
1321
+ should
1322
+ p
1323
+ 5
1324
+ I
1325
+ 0
1326
+ I
1327
+ 39
1328
+ I
1329
+ 0
1330
+ I
1331
+ 3a
1332
+ I
1333
+ f
1334
+ x
1335
+ 31
1336
+ ./spec/hamster/list/all_spec.rb
1337
+ p
1338
+ 0
1339
+ p
1340
+ 9
1341
+ I
1342
+ 0
1343
+ I
1344
+ 2f
1345
+ I
1346
+ 0
1347
+ I
1348
+ 31
1349
+ I
1350
+ 8
1351
+ I
1352
+ 35
1353
+ I
1354
+ 13
1355
+ I
1356
+ 39
1357
+ I
1358
+ 1e
1359
+ x
1360
+ 31
1361
+ ./spec/hamster/list/all_spec.rb
1362
+ p
1363
+ 0
1364
+ x
1365
+ 8
1366
+ describe
1367
+ s
1368
+ 13
1369
+ with no block
1370
+ M
1371
+ 1
1372
+ n
1373
+ n
1374
+ x
1375
+ 9
1376
+ __block__
1377
+ i
1378
+ 21
1379
+ 5
1380
+ 7
1381
+ 0
1382
+ 60
1383
+ 53
1384
+ 1
1385
+ 44
1386
+ 47
1387
+ 2
1388
+ 1
1389
+ 14
1390
+ 1
1391
+ 3
1392
+ 32
1393
+ 2
1394
+ 53
1395
+ 3
1396
+ 47
1397
+ 4
1398
+ 0
1399
+ 11
1400
+ I
1401
+ 4
1402
+ I
1403
+ 0
1404
+ I
1405
+ -1
1406
+ I
1407
+ -1
1408
+ n
1409
+ p
1410
+ 5
1411
+ s
1412
+ 37
1413
+ returns true if all values are truthy
1414
+ M
1415
+ 1
1416
+ n
1417
+ n
1418
+ x
1419
+ 9
1420
+ __block__
1421
+ i
1422
+ 20
1423
+ 42
1424
+ 0
1425
+ 1
1426
+ 2
1427
+ 7
1428
+ 2
1429
+ 60
1430
+ 46
1431
+ 3
1432
+ 2
1433
+ 45
1434
+ 4
1435
+ 5
1436
+ 44
1437
+ 45
1438
+ 5
1439
+ 46
1440
+ 6
1441
+ 1
1442
+ 11
1443
+ I
1444
+ 4
1445
+ I
1446
+ 0
1447
+ I
1448
+ -1
1449
+ I
1450
+ -1
1451
+ n
1452
+ p
1453
+ 7
1454
+ x
1455
+ 7
1456
+ Hamster
1457
+ n
1458
+ s
1459
+ 1
1460
+ A
1461
+ x
1462
+ 4
1463
+ list
1464
+ x
1465
+ 4
1466
+ all?
1467
+ x
1468
+ 7
1469
+ be_true
1470
+ x
1471
+ 6
1472
+ should
1473
+ p
1474
+ 5
1475
+ I
1476
+ 0
1477
+ I
1478
+ 41
1479
+ I
1480
+ 0
1481
+ I
1482
+ 42
1483
+ I
1484
+ 14
1485
+ x
1486
+ 31
1487
+ ./spec/hamster/list/all_spec.rb
1488
+ p
1489
+ 0
1490
+ x
1491
+ 2
1492
+ it
1493
+ M
1494
+ 1
1495
+ n
1496
+ n
1497
+ x
1498
+ 9
1499
+ __block__
1500
+ i
1501
+ 23
1502
+ 54
1503
+ 17
1504
+ 0
1505
+ 14
1506
+ 5
1507
+ 18
1508
+ 0
1509
+ 45
1510
+ 0
1511
+ 44
1512
+ 45
1513
+ 1
1514
+ 7
1515
+ 2
1516
+ 60
1517
+ 59
1518
+ 53
1519
+ 3
1520
+ 44
1521
+ 47
1522
+ 4
1523
+ 1
1524
+ 11
1525
+ I
1526
+ 5
1527
+ I
1528
+ 1
1529
+ I
1530
+ 1
1531
+ I
1532
+ 1
1533
+ n
1534
+ p
1535
+ 5
1536
+ x
1537
+ 7
1538
+ inspect
1539
+ x
1540
+ 4
1541
+ to_s
1542
+ s
1543
+ 30
1544
+ returns false if any value is
1545
+ M
1546
+ 1
1547
+ n
1548
+ n
1549
+ x
1550
+ 9
1551
+ __block__
1552
+ i
1553
+ 23
1554
+ 42
1555
+ 0
1556
+ 1
1557
+ 19
1558
+ 1
1559
+ 0
1560
+ 2
1561
+ 7
1562
+ 2
1563
+ 60
1564
+ 46
1565
+ 3
1566
+ 3
1567
+ 45
1568
+ 4
1569
+ 5
1570
+ 44
1571
+ 45
1572
+ 5
1573
+ 46
1574
+ 6
1575
+ 1
1576
+ 11
1577
+ I
1578
+ 5
1579
+ I
1580
+ 0
1581
+ I
1582
+ -1
1583
+ I
1584
+ -1
1585
+ n
1586
+ p
1587
+ 7
1588
+ x
1589
+ 7
1590
+ Hamster
1591
+ n
1592
+ s
1593
+ 1
1594
+ A
1595
+ x
1596
+ 4
1597
+ list
1598
+ x
1599
+ 4
1600
+ all?
1601
+ x
1602
+ 8
1603
+ be_false
1604
+ x
1605
+ 6
1606
+ should
1607
+ p
1608
+ 5
1609
+ I
1610
+ 0
1611
+ I
1612
+ 47
1613
+ I
1614
+ 0
1615
+ I
1616
+ 48
1617
+ I
1618
+ 17
1619
+ x
1620
+ 31
1621
+ ./spec/hamster/list/all_spec.rb
1622
+ p
1623
+ 0
1624
+ x
1625
+ 2
1626
+ it
1627
+ p
1628
+ 5
1629
+ I
1630
+ 0
1631
+ I
1632
+ 45
1633
+ I
1634
+ 4
1635
+ I
1636
+ 47
1637
+ I
1638
+ 17
1639
+ x
1640
+ 31
1641
+ ./spec/hamster/list/all_spec.rb
1642
+ p
1643
+ 1
1644
+ x
1645
+ 5
1646
+ value
1647
+ x
1648
+ 4
1649
+ each
1650
+ p
1651
+ 7
1652
+ I
1653
+ 0
1654
+ I
1655
+ 3f
1656
+ I
1657
+ 0
1658
+ I
1659
+ 41
1660
+ I
1661
+ b
1662
+ I
1663
+ 45
1664
+ I
1665
+ 15
1666
+ x
1667
+ 31
1668
+ ./spec/hamster/list/all_spec.rb
1669
+ p
1670
+ 0
1671
+ p
1672
+ 7
1673
+ I
1674
+ 0
1675
+ I
1676
+ 2d
1677
+ I
1678
+ 0
1679
+ I
1680
+ 2f
1681
+ I
1682
+ b
1683
+ I
1684
+ 3f
1685
+ I
1686
+ 16
1687
+ x
1688
+ 31
1689
+ ./spec/hamster/list/all_spec.rb
1690
+ p
1691
+ 0
1692
+ p
1693
+ 9
1694
+ I
1695
+ 0
1696
+ I
1697
+ 7
1698
+ I
1699
+ 0
1700
+ I
1701
+ 9
1702
+ I
1703
+ b
1704
+ I
1705
+ 1d
1706
+ I
1707
+ 16
1708
+ I
1709
+ 2d
1710
+ I
1711
+ 21
1712
+ x
1713
+ 31
1714
+ ./spec/hamster/list/all_spec.rb
1715
+ p
1716
+ 0
1717
+ x
1718
+ 8
1719
+ describe
1720
+ p
1721
+ 5
1722
+ I
1723
+ 0
1724
+ I
1725
+ 5
1726
+ I
1727
+ 0
1728
+ I
1729
+ 7
1730
+ I
1731
+ b
1732
+ x
1733
+ 31
1734
+ ./spec/hamster/list/all_spec.rb
1735
+ p
1736
+ 0
1737
+ x
1738
+ 8
1739
+ describe
1740
+ p
1741
+ 7
1742
+ I
1743
+ 0
1744
+ I
1745
+ 1
1746
+ I
1747
+ 1a
1748
+ I
1749
+ 3
1750
+ I
1751
+ 23
1752
+ I
1753
+ 5
1754
+ I
1755
+ 32
1756
+ x
1757
+ 31
1758
+ ./spec/hamster/list/all_spec.rb
1759
+ p
1760
+ 0