alf 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. data/CHANGELOG.md +22 -0
  2. data/Gemfile +3 -3
  3. data/Gemfile.lock +9 -10
  4. data/alf.gemspec +3 -3
  5. data/alf.noespec +5 -4
  6. data/doc/commands/show.md +1 -1
  7. data/doc/operators/relational/heading.md +20 -0
  8. data/doc/operators/relational/join.md +4 -3
  9. data/doc/operators/relational/matching.md +7 -3
  10. data/doc/operators/relational/restrict.md +2 -2
  11. data/examples/hitradio/compact.rb +48 -0
  12. data/examples/hitradio/compare1.rb +28 -0
  13. data/examples/hitradio/gz_reader.rb +23 -0
  14. data/examples/hitradio/hitradio-1.alf +1 -0
  15. data/examples/hitradio/hitradio.log +25080 -0
  16. data/examples/hitradio/hitradio.mar +25081 -0
  17. data/examples/hitradio/hitradio.mar.gz +0 -0
  18. data/examples/hitradio/hitradio.rash +25080 -0
  19. data/examples/hitradio/mar_reader.rb +18 -0
  20. data/lib/alf/aggregator/aggregators.rb +28 -0
  21. data/lib/alf/aggregator/aggregators.rbc +2640 -0
  22. data/lib/alf/aggregator/base.rbc +1055 -0
  23. data/lib/alf/aggregator/class_methods.rb +1 -1
  24. data/lib/alf/aggregator/class_methods.rbc +830 -0
  25. data/lib/alf/buffer/sorted.rbc +715 -0
  26. data/lib/alf/command/class_methods.rbc +453 -0
  27. data/lib/alf/command/doc_manager.rbc +1604 -0
  28. data/lib/alf/command/exec.rbc +408 -0
  29. data/lib/alf/command/help.rbc +764 -0
  30. data/lib/alf/command/main.rb +37 -5
  31. data/lib/alf/command/main.rbc +3612 -0
  32. data/lib/alf/command/show.rb +37 -5
  33. data/lib/alf/command/show.rbc +1327 -0
  34. data/lib/alf/environment/base.rbc +459 -0
  35. data/lib/alf/environment/class_methods.rbc +1110 -0
  36. data/lib/alf/environment/explicit.rb +2 -2
  37. data/lib/alf/environment/explicit.rbc +601 -0
  38. data/lib/alf/environment/folder.rb +2 -2
  39. data/lib/alf/environment/folder.rbc +942 -0
  40. data/lib/alf/errors.rb +4 -0
  41. data/lib/alf/errors.rbc +155 -0
  42. data/lib/alf/extra/csv.rb +5 -2
  43. data/lib/alf/extra/csv.rbc +2021 -0
  44. data/lib/alf/extra/logs.rbc +1957 -0
  45. data/lib/alf/extra/sequel.rbc +1417 -0
  46. data/lib/alf/extra/yaml.rbc +435 -0
  47. data/lib/alf/extra.rbc +101 -0
  48. data/lib/alf/iterator/base.rbc +437 -0
  49. data/lib/alf/iterator/class_methods.rbc +518 -0
  50. data/lib/alf/iterator/proxy.rbc +599 -0
  51. data/lib/alf/lispy/instance_methods.rbc +2535 -0
  52. data/lib/alf/loader.rb +2 -1
  53. data/lib/alf/loader.rbc +85 -0
  54. data/lib/alf/operator/base.rbc +860 -0
  55. data/lib/alf/operator/binary.rbc +595 -0
  56. data/lib/alf/operator/cesure.rbc +883 -0
  57. data/lib/alf/operator/class_methods.rbc +1915 -0
  58. data/lib/alf/operator/experimental.rbc +200 -0
  59. data/lib/alf/operator/non_relational/autonum.rbc +587 -0
  60. data/lib/alf/operator/non_relational/clip.rbc +522 -0
  61. data/lib/alf/operator/non_relational/coerce.rbc +596 -0
  62. data/lib/alf/operator/non_relational/compact.rbc +1283 -0
  63. data/lib/alf/operator/non_relational/defaults.rbc +733 -0
  64. data/lib/alf/operator/non_relational/generator.rbc +1015 -0
  65. data/lib/alf/operator/non_relational/sort.rbc +665 -0
  66. data/lib/alf/operator/nullary.rbc +404 -0
  67. data/lib/alf/operator/relational/extend.rbc +616 -0
  68. data/lib/alf/operator/relational/group.rbc +968 -0
  69. data/lib/alf/operator/relational/heading.rb +30 -0
  70. data/lib/alf/operator/relational/heading.rbc +657 -0
  71. data/lib/alf/operator/relational/intersect.rbc +969 -0
  72. data/lib/alf/operator/relational/join.rbc +1708 -0
  73. data/lib/alf/operator/relational/matching.rbc +1047 -0
  74. data/lib/alf/operator/relational/minus.rbc +965 -0
  75. data/lib/alf/operator/relational/not_matching.rbc +1047 -0
  76. data/lib/alf/operator/relational/project.rbc +669 -0
  77. data/lib/alf/operator/relational/quota.rbc +1193 -0
  78. data/lib/alf/operator/relational/rank.rbc +1217 -0
  79. data/lib/alf/operator/relational/rename.rbc +496 -0
  80. data/lib/alf/operator/relational/restrict.rbc +611 -0
  81. data/lib/alf/operator/relational/summarize.rbc +1922 -0
  82. data/lib/alf/operator/relational/ungroup.rbc +643 -0
  83. data/lib/alf/operator/relational/union.rbc +846 -0
  84. data/lib/alf/operator/relational/unwrap.rbc +540 -0
  85. data/lib/alf/operator/relational/wrap.rbc +560 -0
  86. data/lib/alf/operator/shortcut.rbc +809 -0
  87. data/lib/alf/operator/signature.rbc +4640 -0
  88. data/lib/alf/operator/transform.rbc +484 -0
  89. data/lib/alf/operator/unary.rbc +629 -0
  90. data/lib/alf/reader/alf_file.rbc +464 -0
  91. data/lib/alf/reader/base.rbc +1613 -0
  92. data/lib/alf/reader/class_methods.rb +1 -1
  93. data/lib/alf/reader/class_methods.rbc +1099 -0
  94. data/lib/alf/reader/rash.rbc +583 -0
  95. data/lib/alf/relation/class_methods.rbc +674 -0
  96. data/lib/alf/relation/instance_methods.rb +7 -0
  97. data/lib/alf/relation/instance_methods.rbc +2107 -0
  98. data/lib/alf/renderer/base.rbc +936 -0
  99. data/lib/alf/renderer/class_methods.rbc +875 -0
  100. data/lib/alf/renderer/rash.rb +16 -2
  101. data/lib/alf/renderer/rash.rbc +802 -0
  102. data/lib/alf/renderer/text.rb +54 -16
  103. data/lib/alf/renderer/text.rbc +5530 -0
  104. data/lib/alf/tools/coerce.rbc +352 -0
  105. data/lib/alf/tools/miscellaneous.rb +8 -1
  106. data/lib/alf/tools/miscellaneous.rbc +1497 -0
  107. data/lib/alf/tools/to_lispy.rbc +2618 -0
  108. data/lib/alf/tools/to_ruby_literal.rbc +344 -0
  109. data/lib/alf/tools/tuple_handle.rbc +738 -0
  110. data/lib/alf/types/attr_list.rbc +1535 -0
  111. data/lib/alf/types/attr_name.rbc +781 -0
  112. data/lib/alf/types/boolean.rbc +365 -0
  113. data/lib/alf/types/heading.rb +16 -1
  114. data/lib/alf/types/heading.rbc +1778 -0
  115. data/lib/alf/types/ordering.rbc +2228 -0
  116. data/lib/alf/types/renaming.rbc +1064 -0
  117. data/lib/alf/types/summarization.rbc +1394 -0
  118. data/lib/alf/types/tuple_computation.rbc +1061 -0
  119. data/lib/alf/types/tuple_expression.rbc +1016 -0
  120. data/lib/alf/types/tuple_predicate.rbc +1349 -0
  121. data/lib/alf/version.rb +1 -1
  122. data/lib/alf/version.rbc +350 -0
  123. data/lib/alf.rb +13 -5
  124. data/lib/alf.rbc +3884 -0
  125. data/spec/integration/command/alf/alf_help.stdout +8 -6
  126. data/spec/integration/command/help/help_1.stdout +3 -1
  127. data/spec/integration/command/show/show_base.cmd +1 -1
  128. data/spec/integration/command/show/show_base_sort_1.cmd +1 -0
  129. data/spec/integration/command/show/show_base_sort_1.stdout +9 -0
  130. data/spec/integration/command/show/show_base_sort_2.cmd +1 -0
  131. data/spec/integration/command/show/show_base_sort_2.stdout +9 -0
  132. data/spec/integration/command/show/show_ff.cmd +1 -0
  133. data/spec/integration/command/show/show_ff.stdout +10 -0
  134. data/spec/integration/command/show/show_rash_pretty.cmd +1 -0
  135. data/spec/integration/command/show/show_rash_pretty.stdout +30 -0
  136. data/spec/integration/test_alf.rbc +1098 -0
  137. data/spec/integration/test_command.rbc +1832 -0
  138. data/spec/integration/test_examples.rbc +559 -0
  139. data/spec/integration/test_semantics.rbc +991 -0
  140. data/spec/regression/alf_file/test___FILE__.rbc +524 -0
  141. data/spec/regression/heading/test_heading_with_date.rbc +381 -0
  142. data/spec/regression/lispy/test_compile.rbc +404 -0
  143. data/spec/regression/logs/test_path_attribute.rbc +687 -0
  144. data/spec/regression/relation/test_relation_allbut_all.rbc +468 -0
  145. data/spec/regression/relation/test_relation_with_date.rbc +381 -0
  146. data/spec/regression/restrict/test_restrict_with_keywords.rbc +628 -0
  147. data/spec/shared/a_value.rbc +337 -0
  148. data/spec/shared/an_operator_class.rbc +908 -0
  149. data/spec/spec_helper.rbc +453 -0
  150. data/spec/unit/assumptions/test_file.rbc +668 -0
  151. data/spec/unit/assumptions/test_instance_eval.rbc +654 -0
  152. data/spec/unit/assumptions/test_scoping.rbc +755 -0
  153. data/spec/unit/assumptions/test_set.rbc +1928 -0
  154. data/spec/unit/command/doc_manager/test_call.rbc +1537 -0
  155. data/spec/unit/csv/test_reader.rbc +2228 -0
  156. data/spec/unit/csv/test_renderer.rbc +2426 -0
  157. data/spec/unit/environment/test_explicit.rbc +464 -0
  158. data/spec/unit/environment/test_folder.rb +2 -2
  159. data/spec/unit/environment/test_folder.rbc +1304 -0
  160. data/spec/unit/lispy/test_relation.rbc +1477 -0
  161. data/spec/unit/lispy/test_run.rbc +1735 -0
  162. data/spec/unit/lispy/test_tuple.rbc +1686 -0
  163. data/spec/unit/logs/test_reader.rb +6 -4
  164. data/spec/unit/logs/test_reader.rbc +1807 -0
  165. data/spec/unit/operator/non_relational/compact/test_buffer_based.rbc +1127 -0
  166. data/spec/unit/operator/non_relational/compact/test_sort_based.rbc +1127 -0
  167. data/spec/unit/operator/non_relational/test_autonum.rbc +1969 -0
  168. data/spec/unit/operator/non_relational/test_clip.rbc +1850 -0
  169. data/spec/unit/operator/non_relational/test_coerce.rbc +1290 -0
  170. data/spec/unit/operator/non_relational/test_compact.rbc +1382 -0
  171. data/spec/unit/operator/non_relational/test_defaults.rbc +2319 -0
  172. data/spec/unit/operator/non_relational/test_generator.rbc +2361 -0
  173. data/spec/unit/operator/non_relational/test_sort.rbc +2583 -0
  174. data/spec/unit/operator/relational/join/test_hash_based.rbc +2481 -0
  175. data/spec/unit/operator/relational/matching/test_hash_based.rbc +2458 -0
  176. data/spec/unit/operator/relational/not_matching/test_hash_based.rbc +1632 -0
  177. data/spec/unit/operator/relational/summarize/test_hash_based.rbc +1990 -0
  178. data/spec/unit/operator/relational/summarize/test_sort_based.rbc +1990 -0
  179. data/spec/unit/operator/relational/test_extend.rbc +1300 -0
  180. data/spec/unit/operator/relational/test_group.rbc +2142 -0
  181. data/spec/unit/operator/relational/test_intersect.rbc +2069 -0
  182. data/spec/unit/operator/relational/test_join.rbc +1282 -0
  183. data/spec/unit/operator/relational/test_minus.rbc +1995 -0
  184. data/spec/unit/operator/relational/test_project.rbc +2870 -0
  185. data/spec/unit/operator/relational/test_quota.rbc +1788 -0
  186. data/spec/unit/operator/relational/test_rank.rbc +2079 -0
  187. data/spec/unit/operator/relational/test_rename.rbc +1158 -0
  188. data/spec/unit/operator/relational/test_restrict.rbc +2305 -0
  189. data/spec/unit/operator/relational/test_summarize.rbc +2570 -0
  190. data/spec/unit/operator/relational/test_ungroup.rbc +1425 -0
  191. data/spec/unit/operator/relational/test_union.rbc +1089 -0
  192. data/spec/unit/operator/relational/test_unwrap.rbc +1176 -0
  193. data/spec/unit/operator/relational/test_wrap.rbc +1203 -0
  194. data/spec/unit/operator/signature/test_collect_on.rbc +1989 -0
  195. data/spec/unit/operator/signature/test_initialize.rbc +544 -0
  196. data/spec/unit/operator/signature/test_install.rbc +1671 -0
  197. data/spec/unit/operator/signature/test_option_parser.rbc +1348 -0
  198. data/spec/unit/operator/signature/test_parse_args.rbc +1908 -0
  199. data/spec/unit/operator/signature/test_parse_argv.rbc +2878 -0
  200. data/spec/unit/operator/signature/test_to_lispy.rbc +3305 -0
  201. data/spec/unit/operator/signature/test_to_shell.rbc +3327 -0
  202. data/spec/unit/operator/test_non_relational.rbc +571 -0
  203. data/spec/unit/operator/test_relational.rb +2 -1
  204. data/spec/unit/operator/test_relational.rbc +758 -0
  205. data/spec/unit/reader/test_alf_file.rbc +1107 -0
  206. data/spec/unit/reader/test_initialize.rbc +1774 -0
  207. data/spec/unit/reader/test_rash.rbc +1127 -0
  208. data/spec/unit/relation/test_coerce.rbc +2320 -0
  209. data/spec/unit/relation/test_inspect.rbc +502 -0
  210. data/spec/unit/relation/test_relops.rbc +1585 -0
  211. data/spec/unit/relation/test_to_a.rbc +1112 -0
  212. data/spec/unit/renderer/test_initialize.rbc +1766 -0
  213. data/spec/unit/sequel/test_environment.rbc +1723 -0
  214. data/spec/unit/test_aggregator.rb +38 -1
  215. data/spec/unit/test_aggregator.rbc +4358 -0
  216. data/spec/unit/test_environment.rbc +1271 -0
  217. data/spec/unit/test_lispy.rbc +879 -0
  218. data/spec/unit/test_operator.rbc +531 -0
  219. data/spec/unit/test_reader.rb +6 -2
  220. data/spec/unit/test_reader.rbc +1249 -0
  221. data/spec/unit/test_relation.rbc +2588 -0
  222. data/spec/unit/test_renderer.rb +12 -1
  223. data/spec/unit/test_renderer.rbc +2011 -0
  224. data/spec/unit/text/test_cell.rb +1 -0
  225. data/spec/unit/text/test_cell.rbc +1532 -0
  226. data/spec/unit/text/test_row.rbc +847 -0
  227. data/spec/unit/text/test_table.rbc +978 -0
  228. data/spec/unit/tools/test_coalesce.rbc +456 -0
  229. data/spec/unit/tools/test_coerce.rbc +279 -0
  230. data/spec/unit/tools/test_to_lispy.rbc +5711 -0
  231. data/spec/unit/tools/test_to_ruby_literal.rbc +272 -0
  232. data/spec/unit/tools/test_tools.rbc +672 -0
  233. data/spec/unit/tools/test_tuple_handle.rbc +1591 -0
  234. data/spec/unit/tools/test_tuple_heading.rb +20 -0
  235. data/spec/unit/tools/test_tuple_heading.rbc +821 -0
  236. data/spec/unit/tools/test_varargs.rbc +495 -0
  237. data/spec/unit/types/heading/test_union.rb +21 -0
  238. data/spec/unit/types/heading/test_union.rbc +1043 -0
  239. data/spec/unit/types/test_attr_list.rbc +4481 -0
  240. data/spec/unit/types/test_attr_name.rbc +1872 -0
  241. data/spec/unit/types/test_heading.rbc +1735 -0
  242. data/spec/unit/types/test_ordering.rbc +3695 -0
  243. data/spec/unit/types/test_renaming.rbc +2426 -0
  244. data/spec/unit/types/test_summarization.rbc +2538 -0
  245. data/spec/unit/types/test_tuple_computation.rbc +2340 -0
  246. data/spec/unit/types/test_tuple_expression.rbc +2285 -0
  247. data/spec/unit/types/test_tuple_predicate.rbc +3168 -0
  248. data/tasks/gh-pages.rake +1 -1
  249. metadata +529 -125
@@ -0,0 +1,495 @@
1
+ !RBIX
2
+ 11817445442317083511
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 37
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 99
23
+ 7
24
+ 2
25
+ 65
26
+ 49
27
+ 3
28
+ 2
29
+ 13
30
+ 99
31
+ 12
32
+ 7
33
+ 4
34
+ 12
35
+ 7
36
+ 5
37
+ 12
38
+ 65
39
+ 12
40
+ 49
41
+ 6
42
+ 4
43
+ 15
44
+ 49
45
+ 4
46
+ 0
47
+ 15
48
+ 2
49
+ 11
50
+ I
51
+ 6
52
+ I
53
+ 0
54
+ I
55
+ 0
56
+ I
57
+ 0
58
+ n
59
+ p
60
+ 7
61
+ s
62
+ 11
63
+ spec_helper
64
+ x
65
+ 7
66
+ require
67
+ x
68
+ 3
69
+ Alf
70
+ x
71
+ 11
72
+ open_module
73
+ x
74
+ 15
75
+ __module_init__
76
+ M
77
+ 1
78
+ n
79
+ n
80
+ x
81
+ 3
82
+ Alf
83
+ i
84
+ 13
85
+ 5
86
+ 66
87
+ 5
88
+ 7
89
+ 0
90
+ 64
91
+ 56
92
+ 1
93
+ 47
94
+ 50
95
+ 2
96
+ 1
97
+ 11
98
+ I
99
+ 3
100
+ I
101
+ 0
102
+ I
103
+ 0
104
+ I
105
+ 0
106
+ n
107
+ p
108
+ 3
109
+ s
110
+ 13
111
+ Tools#varargs
112
+ M
113
+ 1
114
+ p
115
+ 2
116
+ x
117
+ 9
118
+ for_block
119
+ t
120
+ n
121
+ x
122
+ 3
123
+ Alf
124
+ i
125
+ 22
126
+ 5
127
+ 7
128
+ 0
129
+ 64
130
+ 56
131
+ 1
132
+ 47
133
+ 50
134
+ 2
135
+ 1
136
+ 15
137
+ 5
138
+ 7
139
+ 3
140
+ 64
141
+ 56
142
+ 4
143
+ 47
144
+ 50
145
+ 2
146
+ 1
147
+ 11
148
+ I
149
+ 4
150
+ I
151
+ 0
152
+ I
153
+ 0
154
+ I
155
+ 0
156
+ I
157
+ -2
158
+ p
159
+ 5
160
+ s
161
+ 15
162
+ with exact args
163
+ M
164
+ 1
165
+ p
166
+ 2
167
+ x
168
+ 9
169
+ for_block
170
+ t
171
+ n
172
+ x
173
+ 3
174
+ Alf
175
+ i
176
+ 35
177
+ 45
178
+ 0
179
+ 1
180
+ 79
181
+ 7
182
+ 2
183
+ 64
184
+ 35
185
+ 2
186
+ 45
187
+ 3
188
+ 4
189
+ 45
190
+ 5
191
+ 6
192
+ 35
193
+ 2
194
+ 49
195
+ 7
196
+ 2
197
+ 5
198
+ 79
199
+ 7
200
+ 2
201
+ 64
202
+ 35
203
+ 2
204
+ 47
205
+ 49
206
+ 8
207
+ 1
208
+ 49
209
+ 9
210
+ 1
211
+ 11
212
+ I
213
+ 5
214
+ I
215
+ 0
216
+ I
217
+ 0
218
+ I
219
+ 0
220
+ I
221
+ -2
222
+ p
223
+ 10
224
+ x
225
+ 5
226
+ Tools
227
+ n
228
+ s
229
+ 5
230
+ hello
231
+ x
232
+ 7
233
+ Integer
234
+ n
235
+ x
236
+ 6
237
+ String
238
+ n
239
+ x
240
+ 7
241
+ varargs
242
+ x
243
+ 2
244
+ eq
245
+ x
246
+ 6
247
+ should
248
+ p
249
+ 3
250
+ I
251
+ 0
252
+ I
253
+ 6
254
+ I
255
+ 23
256
+ x
257
+ 61
258
+ /home/blambeau/work/devel/alf/spec/unit/tools/test_varargs.rb
259
+ p
260
+ 0
261
+ x
262
+ 7
263
+ specify
264
+ s
265
+ 17
266
+ with missing args
267
+ M
268
+ 1
269
+ p
270
+ 2
271
+ x
272
+ 9
273
+ for_block
274
+ t
275
+ n
276
+ x
277
+ 3
278
+ Alf
279
+ i
280
+ 98
281
+ 45
282
+ 0
283
+ 1
284
+ 7
285
+ 2
286
+ 64
287
+ 35
288
+ 1
289
+ 45
290
+ 3
291
+ 4
292
+ 45
293
+ 5
294
+ 6
295
+ 35
296
+ 2
297
+ 49
298
+ 7
299
+ 2
300
+ 5
301
+ 1
302
+ 7
303
+ 2
304
+ 64
305
+ 35
306
+ 2
307
+ 47
308
+ 49
309
+ 8
310
+ 1
311
+ 49
312
+ 9
313
+ 1
314
+ 15
315
+ 45
316
+ 0
317
+ 10
318
+ 35
319
+ 0
320
+ 45
321
+ 3
322
+ 11
323
+ 45
324
+ 5
325
+ 12
326
+ 35
327
+ 2
328
+ 49
329
+ 7
330
+ 2
331
+ 5
332
+ 1
333
+ 1
334
+ 35
335
+ 2
336
+ 47
337
+ 49
338
+ 8
339
+ 1
340
+ 49
341
+ 9
342
+ 1
343
+ 15
344
+ 45
345
+ 0
346
+ 13
347
+ 79
348
+ 80
349
+ 35
350
+ 2
351
+ 45
352
+ 3
353
+ 14
354
+ 45
355
+ 5
356
+ 15
357
+ 45
358
+ 3
359
+ 16
360
+ 35
361
+ 3
362
+ 49
363
+ 7
364
+ 2
365
+ 5
366
+ 79
367
+ 1
368
+ 80
369
+ 35
370
+ 3
371
+ 47
372
+ 49
373
+ 8
374
+ 1
375
+ 49
376
+ 9
377
+ 1
378
+ 11
379
+ I
380
+ 6
381
+ I
382
+ 0
383
+ I
384
+ 0
385
+ I
386
+ 0
387
+ I
388
+ -2
389
+ p
390
+ 17
391
+ x
392
+ 5
393
+ Tools
394
+ n
395
+ s
396
+ 5
397
+ hello
398
+ x
399
+ 7
400
+ Integer
401
+ n
402
+ x
403
+ 6
404
+ String
405
+ n
406
+ x
407
+ 7
408
+ varargs
409
+ x
410
+ 2
411
+ eq
412
+ x
413
+ 6
414
+ should
415
+ n
416
+ n
417
+ n
418
+ n
419
+ n
420
+ n
421
+ n
422
+ p
423
+ 7
424
+ I
425
+ 0
426
+ I
427
+ a
428
+ I
429
+ 22
430
+ I
431
+ b
432
+ I
433
+ 3f
434
+ I
435
+ c
436
+ I
437
+ 62
438
+ x
439
+ 61
440
+ /home/blambeau/work/devel/alf/spec/unit/tools/test_varargs.rb
441
+ p
442
+ 0
443
+ p
444
+ 5
445
+ I
446
+ 0
447
+ I
448
+ 5
449
+ I
450
+ b
451
+ I
452
+ 9
453
+ I
454
+ 16
455
+ x
456
+ 61
457
+ /home/blambeau/work/devel/alf/spec/unit/tools/test_varargs.rb
458
+ p
459
+ 0
460
+ x
461
+ 8
462
+ describe
463
+ p
464
+ 3
465
+ I
466
+ 2
467
+ I
468
+ 3
469
+ I
470
+ d
471
+ x
472
+ 61
473
+ /home/blambeau/work/devel/alf/spec/unit/tools/test_varargs.rb
474
+ p
475
+ 0
476
+ x
477
+ 13
478
+ attach_method
479
+ p
480
+ 5
481
+ I
482
+ 0
483
+ I
484
+ 1
485
+ I
486
+ 9
487
+ I
488
+ 2
489
+ I
490
+ 25
491
+ x
492
+ 61
493
+ /home/blambeau/work/devel/alf/spec/unit/tools/test_varargs.rb
494
+ p
495
+ 0
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+ module Alf
3
+ module Types
4
+ describe "Heading", "#union" do
5
+ subject{ h1 + h2 }
6
+
7
+ describe "on empty headings" do
8
+ let(:h1){ Heading::EMPTY }
9
+ let(:h2){ Heading::EMPTY }
10
+ it{ should eq(Heading::EMPTY) }
11
+ end
12
+
13
+ describe "on equal headings" do
14
+ let(:h1){ Heading[:name => String, :price => Float] }
15
+ let(:h2){ Heading[:name => String, :price => Float] }
16
+ it{ should eq(Heading[:name => String, :price => Float]) }
17
+ end
18
+
19
+ end
20
+ end
21
+ end