hamster 0.1.19 → 0.1.20

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