alf-core 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +12 -1
- data/Gemfile +1 -1
- data/lib/alf-core.rb +1 -39
- data/lib/alf/algebra/operator/hierarchize.rb +1 -1
- data/lib/alf/algebra/operator/unwrap.rb +5 -2
- data/lib/alf/algebra/shortcut.rb +1 -0
- data/lib/alf/algebra/shortcut/image.rb +33 -0
- data/lib/alf/compiler.rb +1 -1
- data/lib/alf/compiler/cog.rb +8 -1
- data/lib/alf/core.rb +39 -0
- data/lib/alf/core/version.rb +1 -1
- data/lib/alf/database/connection.rb +1 -1
- data/lib/alf/engine/group/hash.rb +1 -1
- data/lib/alf/engine/leaf.rb +4 -2
- data/lib/alf/engine/ungroup.rb +4 -1
- data/lib/alf/ext.rb +1 -0
- data/lib/alf/ext/domain/heading_based.rb +6 -0
- data/lib/alf/ext/yaml.rb +35 -0
- data/lib/alf/facade.rb +4 -2
- data/lib/alf/reader/rash.rb +5 -0
- data/lib/alf/relation.rb +6 -5
- data/lib/alf/relvar.rb +1 -3
- data/lib/alf/relvar/read_only.rb +1 -1
- data/lib/alf/renderer/text.rb +1 -2
- data/lib/alf/renderer/yaml.rb +7 -0
- data/lib/alf/support/miscellaneous.rb +9 -0
- data/lib/alf/tuple.rb +5 -3
- data/lib/alf/types.rb +2 -0
- data/lib/alf/types/ordering.rb +2 -2
- data/lib/alf/types/selection.rb +12 -1
- data/lib/alf/types/tuple_expression.rb +7 -3
- data/lib/alf/types/type_check.rb +28 -11
- data/tasks/gem.rake +7 -72
- metadata +8 -1312
- data/spec/compiler_helper.rb +0 -20
- data/spec/integration/__database__/group.alf +0 -3
- data/spec/integration/__database__/parts.rash +0 -6
- data/spec/integration/__database__/suppliers.rash +0 -5
- data/spec/integration/__database__/suppliers_csv.csv +0 -6
- data/spec/integration/__database__/supplies.rash +0 -12
- data/spec/integration/ext/test_relation.rb +0 -16
- data/spec/integration/relation/test_extend.rb +0 -20
- data/spec/integration/relation/test_to_array.rb +0 -28
- data/spec/integration/test_alf.rb +0 -8
- data/spec/integration/test_examples.rb +0 -38
- data/spec/optimizer_helper.rb +0 -19
- data/spec/regression/heading/test_heading_with_date.rb +0 -12
- data/spec/regression/relation/test_coerce.rb +0 -24
- data/spec/regression/relation/test_relation_allbut_all.rb +0 -14
- data/spec/regression/relation/test_relation_with_date.rb +0 -12
- data/spec/regression/relation/test_restrict.rb +0 -21
- data/spec/regression/restrict/test_restrict_with_keywords.rb +0 -17
- data/spec/shared/a_cog.rb +0 -40
- data/spec/shared/a_scope.rb +0 -21
- data/spec/shared/a_valid_type_implementation.rb +0 -44
- data/spec/shared/a_value.rb +0 -12
- data/spec/shared/an_operator_class.rb +0 -49
- data/spec/spec_helper.rb +0 -80
- data/spec/type_check_helper.rb +0 -1
- data/spec/unit/alf-adapter-fs/folder/fixtures/suppliers.rash +0 -5
- data/spec/unit/alf-adapter-fs/folder/test_adapter_class.rb +0 -23
- data/spec/unit/alf-adapter-fs/folder/test_adapter_instance.rb +0 -17
- data/spec/unit/alf-adapter/adapter/test_factor.rb +0 -20
- data/spec/unit/alf-adapter/connection/schema_cached/test_delegate.rb +0 -14
- data/spec/unit/alf-adapter/connection/schema_cached/test_heading.rb +0 -12
- data/spec/unit/alf-adapter/connection/schema_cached/test_keys.rb +0 -12
- data/spec/unit/alf-adapter/connection/schema_cached/test_knows.rb +0 -12
- data/spec/unit/alf-adapter/connection/test_lock.rb +0 -16
- data/spec/unit/alf-adapter/connection/test_migrate.rb +0 -17
- data/spec/unit/alf-adapter/shared_examples/a_cached_connection_method.rb +0 -30
- data/spec/unit/alf-adapter/shared_examples/an_adapter.rb +0 -34
- data/spec/unit/alf-adapter/shared_examples/an_adapter_class.rb +0 -21
- data/spec/unit/alf-adapter/shared_examples/an_adapter_with_readable_cogs.rb +0 -31
- data/spec/unit/alf-adapter/shared_examples/an_uncached_connection_method.rb +0 -21
- data/spec/unit/alf-aggregator/test_avg.rb +0 -22
- data/spec/unit/alf-aggregator/test_collect.rb +0 -25
- data/spec/unit/alf-aggregator/test_concat.rb +0 -39
- data/spec/unit/alf-aggregator/test_count.rb +0 -17
- data/spec/unit/alf-aggregator/test_max.rb +0 -23
- data/spec/unit/alf-aggregator/test_min.rb +0 -23
- data/spec/unit/alf-aggregator/test_stddev.rb +0 -27
- data/spec/unit/alf-aggregator/test_sum.rb +0 -23
- data/spec/unit/alf-aggregator/test_variance.rb +0 -29
- data/spec/unit/alf-algebra/operand/named/test_hash_and_equal.rb +0 -53
- data/spec/unit/alf-algebra/operand/named/test_keys.rb +0 -22
- data/spec/unit/alf-algebra/operand/named/test_to_ascii_tree.rb +0 -18
- data/spec/unit/alf-algebra/operand/named/test_to_cog.rb +0 -24
- data/spec/unit/alf-algebra/operand/named/test_to_relvar.rb +0 -18
- data/spec/unit/alf-algebra/operand/named/test_type_check.rb +0 -38
- data/spec/unit/alf-algebra/operand/proxy/test_to_cog.rb +0 -42
- data/spec/unit/alf-algebra/operand/test_coerce.rb +0 -37
- data/spec/unit/alf-algebra/operand/test_proxy.rb +0 -54
- data/spec/unit/alf-algebra/operator/allbut/test_key_preserving.rb +0 -55
- data/spec/unit/alf-algebra/operator/allbut/test_keys.rb +0 -52
- data/spec/unit/alf-algebra/operator/allbut/test_type_check.rb +0 -42
- data/spec/unit/alf-algebra/operator/autonum/test_heading.rb +0 -22
- data/spec/unit/alf-algebra/operator/autonum/test_keys.rb +0 -22
- data/spec/unit/alf-algebra/operator/autonum/test_type_check.rb +0 -30
- data/spec/unit/alf-algebra/operator/clip/test_heading.rb +0 -36
- data/spec/unit/alf-algebra/operator/clip/test_keys.rb +0 -48
- data/spec/unit/alf-algebra/operator/clip/test_type_check.rb +0 -42
- data/spec/unit/alf-algebra/operator/coerce/test_heading.rb +0 -23
- data/spec/unit/alf-algebra/operator/coerce/test_keys.rb +0 -23
- data/spec/unit/alf-algebra/operator/coerce/test_type_check.rb +0 -42
- data/spec/unit/alf-algebra/operator/commons/test_resulting_type.rb +0 -20
- data/spec/unit/alf-algebra/operator/commons/test_to_ascii_tree.rb +0 -40
- data/spec/unit/alf-algebra/operator/commons/test_with_operands.rb +0 -42
- data/spec/unit/alf-algebra/operator/compact/test_heading.rb +0 -23
- data/spec/unit/alf-algebra/operator/compact/test_keys.rb +0 -38
- data/spec/unit/alf-algebra/operator/defaults/test_heading.rb +0 -48
- data/spec/unit/alf-algebra/operator/defaults/test_keys.rb +0 -22
- data/spec/unit/alf-algebra/operator/extend/test_heading.rb +0 -37
- data/spec/unit/alf-algebra/operator/extend/test_keys.rb +0 -30
- data/spec/unit/alf-algebra/operator/extend/test_type_check.rb +0 -42
- data/spec/unit/alf-algebra/operator/frame/test_type_check.rb +0 -54
- data/spec/unit/alf-algebra/operator/generator/test_heading.rb +0 -19
- data/spec/unit/alf-algebra/operator/generator/test_keys.rb +0 -19
- data/spec/unit/alf-algebra/operator/group/test_heading.rb +0 -33
- data/spec/unit/alf-algebra/operator/group/test_keys.rb +0 -65
- data/spec/unit/alf-algebra/operator/group/test_type_check.rb +0 -50
- data/spec/unit/alf-algebra/operator/hierarchize/test_heading.rb +0 -23
- data/spec/unit/alf-algebra/operator/hierarchize/test_type_check.rb +0 -54
- data/spec/unit/alf-algebra/operator/intersect/test_heading.rb +0 -39
- data/spec/unit/alf-algebra/operator/intersect/test_keys.rb +0 -67
- data/spec/unit/alf-algebra/operator/intersect/test_type_check.rb +0 -30
- data/spec/unit/alf-algebra/operator/join/test_heading.rb +0 -39
- data/spec/unit/alf-algebra/operator/join/test_keys.rb +0 -59
- data/spec/unit/alf-algebra/operator/join/test_type_check.rb +0 -62
- data/spec/unit/alf-algebra/operator/matching/test_heading.rb +0 -26
- data/spec/unit/alf-algebra/operator/matching/test_keys.rb +0 -43
- data/spec/unit/alf-algebra/operator/matching/test_type_check.rb +0 -62
- data/spec/unit/alf-algebra/operator/minus/test_heading.rb +0 -26
- data/spec/unit/alf-algebra/operator/minus/test_keys.rb +0 -26
- data/spec/unit/alf-algebra/operator/minus/test_type_check.rb +0 -30
- data/spec/unit/alf-algebra/operator/not_matching/test_heading.rb +0 -26
- data/spec/unit/alf-algebra/operator/not_matching/test_keys.rb +0 -26
- data/spec/unit/alf-algebra/operator/not_matching/test_type_check.rb +0 -62
- data/spec/unit/alf-algebra/operator/page/test_type_check.rb +0 -50
- data/spec/unit/alf-algebra/operator/project/test_heading.rb +0 -36
- data/spec/unit/alf-algebra/operator/project/test_key_preserving.rb +0 -58
- data/spec/unit/alf-algebra/operator/project/test_keys.rb +0 -89
- data/spec/unit/alf-algebra/operator/project/test_type_check.rb +0 -42
- data/spec/unit/alf-algebra/operator/quota/test_heading.rb +0 -23
- data/spec/unit/alf-algebra/operator/quota/test_keys.rb +0 -23
- data/spec/unit/alf-algebra/operator/quota/test_type_check.rb +0 -54
- data/spec/unit/alf-algebra/operator/rank/test_heading.rb +0 -23
- data/spec/unit/alf-algebra/operator/rank/test_keys.rb +0 -36
- data/spec/unit/alf-algebra/operator/rank/test_type_check.rb +0 -42
- data/spec/unit/alf-algebra/operator/rename/test_complete_renaming.rb +0 -23
- data/spec/unit/alf-algebra/operator/rename/test_heading.rb +0 -23
- data/spec/unit/alf-algebra/operator/rename/test_keys.rb +0 -23
- data/spec/unit/alf-algebra/operator/rename/test_type_check.rb +0 -42
- data/spec/unit/alf-algebra/operator/restrict/test_heading.rb +0 -23
- data/spec/unit/alf-algebra/operator/restrict/test_keys.rb +0 -52
- data/spec/unit/alf-algebra/operator/restrict/test_type_check.rb +0 -46
- data/spec/unit/alf-algebra/operator/shared/test_to_cog.rb +0 -34
- data/spec/unit/alf-algebra/operator/sort/test_heading.rb +0 -23
- data/spec/unit/alf-algebra/operator/sort/test_keys.rb +0 -24
- data/spec/unit/alf-algebra/operator/sort/test_type_check.rb +0 -30
- data/spec/unit/alf-algebra/operator/summarize/test_heading.rb +0 -36
- data/spec/unit/alf-algebra/operator/summarize/test_keys.rb +0 -47
- data/spec/unit/alf-algebra/operator/summarize/test_type_check.rb +0 -42
- data/spec/unit/alf-algebra/operator/test_autonum.rb +0 -32
- data/spec/unit/alf-algebra/operator/test_clip.rb +0 -32
- data/spec/unit/alf-algebra/operator/test_coerce.rb +0 -20
- data/spec/unit/alf-algebra/operator/test_compact.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_defaults.rb +0 -32
- data/spec/unit/alf-algebra/operator/test_extend.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_generator.rb +0 -23
- data/spec/unit/alf-algebra/operator/test_group.rb +0 -31
- data/spec/unit/alf-algebra/operator/test_hash_and_equal.rb +0 -59
- data/spec/unit/alf-algebra/operator/test_intersect.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_join.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_minus.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_page.rb +0 -30
- data/spec/unit/alf-algebra/operator/test_project.rb +0 -32
- data/spec/unit/alf-algebra/operator/test_quota.rb +0 -19
- data/spec/unit/alf-algebra/operator/test_rank.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_rename.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_restrict.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_sort.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_summarize.rb +0 -36
- data/spec/unit/alf-algebra/operator/test_ungroup.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_union.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_unwrap.rb +0 -16
- data/spec/unit/alf-algebra/operator/test_wrap.rb +0 -32
- data/spec/unit/alf-algebra/operator/ungroup/test_heading.rb +0 -20
- data/spec/unit/alf-algebra/operator/ungroup/test_keys.rb +0 -23
- data/spec/unit/alf-algebra/operator/ungroup/test_type_check.rb +0 -44
- data/spec/unit/alf-algebra/operator/union/test_heading.rb +0 -36
- data/spec/unit/alf-algebra/operator/union/test_keys.rb +0 -26
- data/spec/unit/alf-algebra/operator/union/test_type_check.rb +0 -30
- data/spec/unit/alf-algebra/operator/unwrap/test_heading.rb +0 -20
- data/spec/unit/alf-algebra/operator/unwrap/test_keys.rb +0 -20
- data/spec/unit/alf-algebra/operator/unwrap/test_type_check.rb +0 -44
- data/spec/unit/alf-algebra/operator/wrap/test_heading.rb +0 -33
- data/spec/unit/alf-algebra/operator/wrap/test_keys.rb +0 -49
- data/spec/unit/alf-algebra/operator/wrap/test_type_check.rb +0 -50
- data/spec/unit/alf-algebra/support/binary/test_with_left.rb +0 -27
- data/spec/unit/alf-algebra/support/binary/test_with_right.rb +0 -27
- data/spec/unit/alf-algebra/support/signature/test_collect_on.rb +0 -41
- data/spec/unit/alf-algebra/support/signature/test_initialize.rb +0 -20
- data/spec/unit/alf-algebra/support/signature/test_install.rb +0 -56
- data/spec/unit/alf-algebra/support/signature/test_option_parser.rb +0 -36
- data/spec/unit/alf-algebra/support/signature/test_parse_args.rb +0 -92
- data/spec/unit/alf-algebra/support/signature/test_to_lispy.rb +0 -117
- data/spec/unit/alf-algebra/support/test_non_relational.rb +0 -22
- data/spec/unit/alf-algebra/support/test_relational.rb +0 -36
- data/spec/unit/alf-algebra/support/unary/test_with_operand.rb +0 -28
- data/spec/unit/alf-algebra/support/with_ordering/test_total_ordering.rb +0 -61
- data/spec/unit/alf-algebra/test_operator.rb +0 -18
- data/spec/unit/alf-algebra/test_rewriter.rb +0 -29
- data/spec/unit/alf-compiler/default/test_allbut.rb +0 -65
- data/spec/unit/alf-compiler/default/test_autonum.rb +0 -30
- data/spec/unit/alf-compiler/default/test_clip.rb +0 -30
- data/spec/unit/alf-compiler/default/test_coerce.rb +0 -30
- data/spec/unit/alf-compiler/default/test_compact.rb +0 -26
- data/spec/unit/alf-compiler/default/test_completude.rb +0 -16
- data/spec/unit/alf-compiler/default/test_defaults.rb +0 -50
- data/spec/unit/alf-compiler/default/test_extend.rb +0 -34
- data/spec/unit/alf-compiler/default/test_frame.rb +0 -77
- data/spec/unit/alf-compiler/default/test_generator.rb +0 -30
- data/spec/unit/alf-compiler/default/test_group.rb +0 -38
- data/spec/unit/alf-compiler/default/test_hierarchize.rb +0 -40
- data/spec/unit/alf-compiler/default/test_intersect.rb +0 -34
- data/spec/unit/alf-compiler/default/test_join.rb +0 -34
- data/spec/unit/alf-compiler/default/test_matching.rb +0 -38
- data/spec/unit/alf-compiler/default/test_minus.rb +0 -38
- data/spec/unit/alf-compiler/default/test_not_matching.rb +0 -38
- data/spec/unit/alf-compiler/default/test_page.rb +0 -91
- data/spec/unit/alf-compiler/default/test_project.rb +0 -76
- data/spec/unit/alf-compiler/default/test_quota.rb +0 -88
- data/spec/unit/alf-compiler/default/test_rank.rb +0 -71
- data/spec/unit/alf-compiler/default/test_rename.rb +0 -30
- data/spec/unit/alf-compiler/default/test_restrict.rb +0 -34
- data/spec/unit/alf-compiler/default/test_sort.rb +0 -81
- data/spec/unit/alf-compiler/default/test_summarize.rb +0 -85
- data/spec/unit/alf-compiler/default/test_ungroup.rb +0 -30
- data/spec/unit/alf-compiler/default/test_union.rb +0 -36
- data/spec/unit/alf-compiler/default/test_unwrap.rb +0 -30
- data/spec/unit/alf-compiler/default/test_wrap.rb +0 -38
- data/spec/unit/alf-compiler/shared/compiled_examples.rb +0 -111
- data/spec/unit/alf-compiler/test_principle.rb +0 -332
- data/spec/unit/alf-core/alf/example.rash +0 -1
- data/spec/unit/alf-core/alf/test_Relation.rb +0 -28
- data/spec/unit/alf-core/alf/test_connect.rb +0 -25
- data/spec/unit/alf-core/alf/test_database.rb +0 -21
- data/spec/unit/alf-core/alf/test_reader.rb +0 -22
- data/spec/unit/alf-core/assumptions/test_file.rb +0 -16
- data/spec/unit/alf-core/assumptions/test_instance_eval.rb +0 -15
- data/spec/unit/alf-core/assumptions/test_scoping.rb +0 -29
- data/spec/unit/alf-core/assumptions/test_set.rb +0 -64
- data/spec/unit/alf-core/test_aggregator.rb +0 -35
- data/spec/unit/alf-database/connection/test_assert.rb +0 -36
- data/spec/unit/alf-database/connection/test_close.rb +0 -28
- data/spec/unit/alf-database/connection/test_deny.rb +0 -36
- data/spec/unit/alf-database/connection/test_fact.rb +0 -48
- data/spec/unit/alf-database/connection/test_lock.rb +0 -19
- data/spec/unit/alf-database/connection/test_migrate.rb +0 -27
- data/spec/unit/alf-database/connection/test_new.rb +0 -17
- data/spec/unit/alf-database/connection/test_options.rb +0 -16
- data/spec/unit/alf-database/connection/test_parse.rb +0 -60
- data/spec/unit/alf-database/connection/test_query.rb +0 -22
- data/spec/unit/alf-database/connection/test_reconnect.rb +0 -41
- data/spec/unit/alf-database/connection/test_relvar.rb +0 -34
- data/spec/unit/alf-database/connection/test_tuple_extract.rb +0 -38
- data/spec/unit/alf-database/database/test_connect.rb +0 -44
- data/spec/unit/alf-database/database/test_connection.rb +0 -21
- data/spec/unit/alf-database/database/test_default_options.rb +0 -14
- data/spec/unit/alf-database/database/test_new.rb +0 -53
- data/spec/unit/alf-database/options/test_freeze.rb +0 -20
- data/spec/unit/alf-database/options/test_merge.rb +0 -26
- data/spec/unit/alf-database/options/test_new.rb +0 -64
- data/spec/unit/alf-database/options/test_parser.rb +0 -23
- data/spec/unit/alf-database/options/test_schema_cache.rb +0 -29
- data/spec/unit/alf-database/options/test_viewpoint.rb +0 -25
- data/spec/unit/alf-database/shared_examples/a_facade_on_database_options.rb +0 -5
- data/spec/unit/alf-engine/cog/test_to_ascii_tree.rb +0 -14
- data/spec/unit/alf-engine/cog/test_to_cog.rb +0 -14
- data/spec/unit/alf-engine/compact/test_set.rb +0 -33
- data/spec/unit/alf-engine/compact/test_uniq.rb +0 -33
- data/spec/unit/alf-engine/group/test_hash.rb +0 -29
- data/spec/unit/alf-engine/hierarchize/test_renamer.rb +0 -18
- data/spec/unit/alf-engine/infer_heading/test_heading.rb +0 -30
- data/spec/unit/alf-engine/join/test_hash.rb +0 -55
- data/spec/unit/alf-engine/materialize/test_array.rb +0 -28
- data/spec/unit/alf-engine/materialize/test_hash.rb +0 -76
- data/spec/unit/alf-engine/quota/test_cesure.rb +0 -34
- data/spec/unit/alf-engine/rank/test_cesure.rb +0 -47
- data/spec/unit/alf-engine/semi/test_hash.rb +0 -58
- data/spec/unit/alf-engine/sort/test_in_memory.rb +0 -32
- data/spec/unit/alf-engine/summarize/test_cesure.rb +0 -36
- data/spec/unit/alf-engine/summarize/test_hash.rb +0 -36
- data/spec/unit/alf-engine/test_aggregate.rb +0 -26
- data/spec/unit/alf-engine/test_autonum.rb +0 -24
- data/spec/unit/alf-engine/test_clip.rb +0 -34
- data/spec/unit/alf-engine/test_coerce.rb +0 -35
- data/spec/unit/alf-engine/test_compact.rb +0 -33
- data/spec/unit/alf-engine/test_concat.rb +0 -38
- data/spec/unit/alf-engine/test_defaults.rb +0 -37
- data/spec/unit/alf-engine/test_filter.rb +0 -55
- data/spec/unit/alf-engine/test_generator.rb +0 -25
- data/spec/unit/alf-engine/test_hierarchize.rb +0 -71
- data/spec/unit/alf-engine/test_infer_heading.rb +0 -58
- data/spec/unit/alf-engine/test_rename.rb +0 -24
- data/spec/unit/alf-engine/test_set_attr.rb +0 -51
- data/spec/unit/alf-engine/test_sort.rb +0 -32
- data/spec/unit/alf-engine/test_take.rb +0 -46
- data/spec/unit/alf-engine/test_to_array.rb +0 -75
- data/spec/unit/alf-engine/test_type_safe.rb +0 -33
- data/spec/unit/alf-engine/test_ungroup.rb +0 -28
- data/spec/unit/alf-engine/test_unwrap.rb +0 -20
- data/spec/unit/alf-engine/test_wrap.rb +0 -26
- data/spec/unit/alf-io/reader/class/test_by_mime_type.rb +0 -32
- data/spec/unit/alf-io/reader/input.csv +0 -3
- data/spec/unit/alf-io/reader/input.rash +0 -2
- data/spec/unit/alf-io/reader/input.ruby +0 -4
- data/spec/unit/alf-io/reader/test_csv.rb +0 -67
- data/spec/unit/alf-io/reader/test_initialize.rb +0 -74
- data/spec/unit/alf-io/reader/test_json.rb +0 -30
- data/spec/unit/alf-io/reader/test_rash.rb +0 -32
- data/spec/unit/alf-io/reader/test_ruby.rb +0 -25
- data/spec/unit/alf-io/reader/test_yaml.rb +0 -30
- data/spec/unit/alf-io/renderer/class/test_by_mime_type.rb +0 -30
- data/spec/unit/alf-io/renderer/test_csv.rb +0 -68
- data/spec/unit/alf-io/renderer/test_initialize.rb +0 -40
- data/spec/unit/alf-io/renderer/test_json.rb +0 -42
- data/spec/unit/alf-io/renderer/test_rash.rb +0 -36
- data/spec/unit/alf-io/renderer/test_text.rb +0 -47
- data/spec/unit/alf-io/renderer/test_yaml.rb +0 -33
- data/spec/unit/alf-io/renderer/text/test_cell.rb +0 -35
- data/spec/unit/alf-io/renderer/text/test_row.rb +0 -30
- data/spec/unit/alf-io/renderer/text/test_table.rb +0 -39
- data/spec/unit/alf-io/shared_examples/a_reader_class.rb +0 -19
- data/spec/unit/alf-io/shared_examples/a_renderer_class.rb +0 -24
- data/spec/unit/alf-io/support/test_proc_io.rb +0 -18
- data/spec/unit/alf-io/test_reader.rb +0 -36
- data/spec/unit/alf-io/test_renderer.rb +0 -43
- data/spec/unit/alf-lang/functional/test_aggregation.rb +0 -40
- data/spec/unit/alf-lang/functional/test_relation.rb +0 -21
- data/spec/unit/alf-lang/functional/test_tuple.rb +0 -21
- data/spec/unit/alf-lang/object_oriented/test_rendering_methods.rb +0 -38
- data/spec/unit/alf-lang/object_oriented/test_to_array.rb +0 -45
- data/spec/unit/alf-lang/object_oriented/test_to_rash.rb +0 -34
- data/spec/unit/alf-lang/object_oriented/test_tuple_extract.rb +0 -51
- data/spec/unit/alf-lang/parser/lispy/test_connection_bang.rb +0 -28
- data/spec/unit/alf-lang/parser/lispy/test_parse.rb +0 -38
- data/spec/unit/alf-lang/parser/lispy/test_to_s.rb +0 -16
- data/spec/unit/alf-lang/parser/safer/safe.txt +0 -5
- data/spec/unit/alf-lang/parser/safer/test_parse.rb +0 -82
- data/spec/unit/alf-lang/parser/safer/unsafe.txt +0 -14
- data/spec/unit/alf-lang/test_predicates.rb +0 -17
- data/spec/unit/alf-optimizer/optimizer/test_search.rb +0 -48
- data/spec/unit/alf-optimizer/restrict/test_on_autonum.rb +0 -41
- data/spec/unit/alf-optimizer/restrict/test_on_coerce.rb +0 -42
- data/spec/unit/alf-optimizer/restrict/test_on_join.rb +0 -107
- data/spec/unit/alf-optimizer/restrict/test_on_matching.rb +0 -41
- data/spec/unit/alf-optimizer/shared/a_pass_through_expression_for_restrict.rb +0 -36
- data/spec/unit/alf-optimizer/shared/a_split_able_expression_for_restrict.rb +0 -46
- data/spec/unit/alf-optimizer/shared/an_optimizable_expression_for_restrict.rb +0 -39
- data/spec/unit/alf-optimizer/shared/an_unoptimizable_expression_for_restrict.rb +0 -24
- data/spec/unit/alf-optimizer/test_autonum.rb +0 -12
- data/spec/unit/alf-optimizer/test_clip.rb +0 -10
- data/spec/unit/alf-optimizer/test_coerce.rb +0 -12
- data/spec/unit/alf-optimizer/test_compact.rb +0 -10
- data/spec/unit/alf-optimizer/test_defaults.rb +0 -12
- data/spec/unit/alf-optimizer/test_extend.rb +0 -12
- data/spec/unit/alf-optimizer/test_generator.rb +0 -9
- data/spec/unit/alf-optimizer/test_group.rb +0 -12
- data/spec/unit/alf-optimizer/test_intersect.rb +0 -10
- data/spec/unit/alf-optimizer/test_minus.rb +0 -10
- data/spec/unit/alf-optimizer/test_project.rb +0 -10
- data/spec/unit/alf-optimizer/test_quota.rb +0 -16
- data/spec/unit/alf-optimizer/test_rank.rb +0 -12
- data/spec/unit/alf-optimizer/test_rename.rb +0 -26
- data/spec/unit/alf-optimizer/test_sort.rb +0 -10
- data/spec/unit/alf-optimizer/test_summarize.rb +0 -15
- data/spec/unit/alf-optimizer/test_union.rb +0 -10
- data/spec/unit/alf-optimizer/test_wrap.rb +0 -12
- data/spec/unit/alf-predicate/expr/test_to_proc.rb +0 -18
- data/spec/unit/alf-predicate/expr/test_to_ruby_code.rb +0 -154
- data/spec/unit/alf-predicate/factory/shared/a_comparison_factory_method.rb +0 -35
- data/spec/unit/alf-predicate/factory/shared/a_predicate_ast_node.rb +0 -20
- data/spec/unit/alf-predicate/factory/test_and.rb +0 -15
- data/spec/unit/alf-predicate/factory/test_between.rb +0 -14
- data/spec/unit/alf-predicate/factory/test_comp.rb +0 -37
- data/spec/unit/alf-predicate/factory/test_contradiction.rb +0 -13
- data/spec/unit/alf-predicate/factory/test_eq.rb +0 -11
- data/spec/unit/alf-predicate/factory/test_factor_predicate.rb +0 -52
- data/spec/unit/alf-predicate/factory/test_gt.rb +0 -11
- data/spec/unit/alf-predicate/factory/test_gte.rb +0 -11
- data/spec/unit/alf-predicate/factory/test_identifier.rb +0 -15
- data/spec/unit/alf-predicate/factory/test_in.rb +0 -14
- data/spec/unit/alf-predicate/factory/test_literal.rb +0 -15
- data/spec/unit/alf-predicate/factory/test_lt.rb +0 -11
- data/spec/unit/alf-predicate/factory/test_lte.rb +0 -11
- data/spec/unit/alf-predicate/factory/test_native.rb +0 -21
- data/spec/unit/alf-predicate/factory/test_neq.rb +0 -11
- data/spec/unit/alf-predicate/factory/test_not.rb +0 -15
- data/spec/unit/alf-predicate/factory/test_or.rb +0 -15
- data/spec/unit/alf-predicate/factory/test_qualified_identifier.rb +0 -17
- data/spec/unit/alf-predicate/factory/test_tautology.rb +0 -14
- data/spec/unit/alf-predicate/grammar/test_match.rb +0 -95
- data/spec/unit/alf-predicate/grammar/test_sexpr.rb +0 -105
- data/spec/unit/alf-predicate/nodes/and/test_and_split.rb +0 -68
- data/spec/unit/alf-predicate/nodes/dyadic_comp/test_and_split.rb +0 -47
- data/spec/unit/alf-predicate/nodes/identifier/test_and_split.rb +0 -25
- data/spec/unit/alf-predicate/nodes/identifier/test_free_variables.rb +0 -14
- data/spec/unit/alf-predicate/nodes/identifier/test_name.rb +0 -14
- data/spec/unit/alf-predicate/nodes/nadic_bool/test_free_variables.rb +0 -16
- data/spec/unit/alf-predicate/nodes/qualified_identifier/test_and_split.rb +0 -25
- data/spec/unit/alf-predicate/nodes/qualified_identifier/test_free_variables.rb +0 -14
- data/spec/unit/alf-predicate/nodes/qualified_identifier/test_name.rb +0 -14
- data/spec/unit/alf-predicate/nodes/qualified_identifier/test_qualifier.rb +0 -14
- data/spec/unit/alf-predicate/predicate/test_and_split.rb +0 -59
- data/spec/unit/alf-predicate/predicate/test_bool_and.rb +0 -36
- data/spec/unit/alf-predicate/predicate/test_bool_not.rb +0 -70
- data/spec/unit/alf-predicate/predicate/test_bool_or.rb +0 -36
- data/spec/unit/alf-predicate/predicate/test_coerce.rb +0 -132
- data/spec/unit/alf-predicate/predicate/test_constant_variables.rb +0 -54
- data/spec/unit/alf-predicate/predicate/test_contradiction.rb +0 -28
- data/spec/unit/alf-predicate/predicate/test_evaluate.rb +0 -70
- data/spec/unit/alf-predicate/predicate/test_factory_methods.rb +0 -79
- data/spec/unit/alf-predicate/predicate/test_free_variables.rb +0 -16
- data/spec/unit/alf-predicate/predicate/test_hash_and_equal.rb +0 -28
- data/spec/unit/alf-predicate/predicate/test_qualify.rb +0 -36
- data/spec/unit/alf-predicate/predicate/test_rename.rb +0 -78
- data/spec/unit/alf-predicate/predicate/test_tautology.rb +0 -28
- data/spec/unit/alf-predicate/predicate/test_to_proc.rb +0 -16
- data/spec/unit/alf-predicate/predicate/test_to_ruby_code.rb +0 -22
- data/spec/unit/alf-predicate/predicate/test_to_ruby_literal.rb +0 -16
- data/spec/unit/alf-predicate/test_predicate.rb +0 -131
- data/spec/unit/alf-relation/relation/class/test_coerce.rb +0 -62
- data/spec/unit/alf-relation/relation/class/test_dum.rb +0 -19
- data/spec/unit/alf-relation/relation/class/test_recursive_type.rb +0 -42
- data/spec/unit/alf-relation/relation/class/test_type.rb +0 -31
- data/spec/unit/alf-relation/relation/factored-types/test_allbut.rb +0 -34
- data/spec/unit/alf-relation/relation/factored-types/test_coerce.rb +0 -45
- data/spec/unit/alf-relation/relation/factored-types/test_comparisons.rb +0 -69
- data/spec/unit/alf-relation/relation/factored-types/test_equality.rb +0 -28
- data/spec/unit/alf-relation/relation/factored-types/test_project.rb +0 -34
- data/spec/unit/alf-relation/relation/factored-types/test_rename.rb +0 -12
- data/spec/unit/alf-relation/relation/factored-types/test_split.rb +0 -30
- data/spec/unit/alf-relation/relation/factored-types/test_to_ruby_literal.rb +0 -18
- data/spec/unit/alf-relation/relation/factored-types/test_triple_equal.rb +0 -42
- data/spec/unit/alf-relation/relation/test_aggregation.rb +0 -36
- data/spec/unit/alf-relation/relation/test_equality.rb +0 -52
- data/spec/unit/alf-relation/relation/test_hash.rb +0 -28
- data/spec/unit/alf-relation/relation/test_heading.rb +0 -17
- data/spec/unit/alf-relation/relation/test_inspect.rb +0 -20
- data/spec/unit/alf-relation/relation/test_keys.rb +0 -17
- data/spec/unit/alf-relation/relation/test_relation.rb +0 -77
- data/spec/unit/alf-relation/relation/test_relops.rb +0 -74
- data/spec/unit/alf-relation/relation/test_sugar.rb +0 -40
- data/spec/unit/alf-relation/relation/test_to_a.rb +0 -37
- data/spec/unit/alf-relation/relation/test_to_hash.rb +0 -31
- data/spec/unit/alf-relation/relation/test_to_relation.rb +0 -14
- data/spec/unit/alf-relation/tuple/class/test_coerce.rb +0 -29
- data/spec/unit/alf-relation/tuple/class/test_type.rb +0 -27
- data/spec/unit/alf-relation/tuple/factored-types/test_allbut.rb +0 -34
- data/spec/unit/alf-relation/tuple/factored-types/test_coerce.rb +0 -91
- data/spec/unit/alf-relation/tuple/factored-types/test_comparisons.rb +0 -69
- data/spec/unit/alf-relation/tuple/factored-types/test_equality.rb +0 -28
- data/spec/unit/alf-relation/tuple/factored-types/test_project.rb +0 -34
- data/spec/unit/alf-relation/tuple/factored-types/test_rename.rb +0 -12
- data/spec/unit/alf-relation/tuple/factored-types/test_split.rb +0 -30
- data/spec/unit/alf-relation/tuple/factored-types/test_to_ruby_literal.rb +0 -18
- data/spec/unit/alf-relation/tuple/factored-types/test_triple_equal.rb +0 -56
- data/spec/unit/alf-relation/tuple/test_allbut.rb +0 -14
- data/spec/unit/alf-relation/tuple/test_attribute_accessors.rb +0 -36
- data/spec/unit/alf-relation/tuple/test_equality.rb +0 -28
- data/spec/unit/alf-relation/tuple/test_extend.rb +0 -30
- data/spec/unit/alf-relation/tuple/test_hash.rb +0 -28
- data/spec/unit/alf-relation/tuple/test_heading.rb +0 -20
- data/spec/unit/alf-relation/tuple/test_merge.rb +0 -24
- data/spec/unit/alf-relation/tuple/test_project.rb +0 -18
- data/spec/unit/alf-relation/tuple/test_remap.rb +0 -14
- data/spec/unit/alf-relation/tuple/test_rename.rb +0 -14
- data/spec/unit/alf-relation/tuple/test_split.rb +0 -28
- data/spec/unit/alf-relation/tuple/test_to_attr_list.rb +0 -12
- data/spec/unit/alf-relation/tuple/test_triple_equal.rb +0 -17
- data/spec/unit/alf-relvar/base/test_connection.rb +0 -20
- data/spec/unit/alf-relvar/base/test_delete.rb +0 -35
- data/spec/unit/alf-relvar/base/test_heading.rb +0 -22
- data/spec/unit/alf-relvar/base/test_insert.rb +0 -23
- data/spec/unit/alf-relvar/base/test_keys.rb +0 -22
- data/spec/unit/alf-relvar/base/test_lock.rb +0 -22
- data/spec/unit/alf-relvar/base/test_oo_lang.rb +0 -45
- data/spec/unit/alf-relvar/base/test_to_cog.rb +0 -22
- data/spec/unit/alf-relvar/base/test_to_lispy.rb +0 -15
- data/spec/unit/alf-relvar/base/test_to_relvar.rb +0 -15
- data/spec/unit/alf-relvar/base/test_to_s.rb +0 -15
- data/spec/unit/alf-relvar/base/test_update.rb +0 -25
- data/spec/unit/alf-relvar/read_only/test_to_relation.rb +0 -17
- data/spec/unit/alf-relvar/read_only/test_type.rb +0 -17
- data/spec/unit/alf-relvar/shared/test_empty.rb +0 -21
- data/spec/unit/alf-relvar/shared/test_empty_bang.rb +0 -31
- data/spec/unit/alf-relvar/shared/test_not_empty_bang.rb +0 -31
- data/spec/unit/alf-relvar/shared/test_to_relation.rb +0 -45
- data/spec/unit/alf-relvar/shared/test_type.rb +0 -21
- data/spec/unit/alf-relvar/shared/test_upsert.rb +0 -41
- data/spec/unit/alf-relvar/virtual/test_delete.rb +0 -40
- data/spec/unit/alf-relvar/virtual/test_expr.rb +0 -15
- data/spec/unit/alf-relvar/virtual/test_heading.rb +0 -21
- data/spec/unit/alf-relvar/virtual/test_insert.rb +0 -28
- data/spec/unit/alf-relvar/virtual/test_keys.rb +0 -21
- data/spec/unit/alf-relvar/virtual/test_oo_lang.rb +0 -30
- data/spec/unit/alf-relvar/virtual/test_to_cog.rb +0 -19
- data/spec/unit/alf-relvar/virtual/test_to_lispy.rb +0 -17
- data/spec/unit/alf-relvar/virtual/test_to_relvar.rb +0 -15
- data/spec/unit/alf-relvar/virtual/test_to_s.rb +0 -15
- data/spec/unit/alf-relvar/virtual/test_update.rb +0 -28
- data/spec/unit/alf-support/config/test_dup.rb +0 -58
- data/spec/unit/alf-support/config/test_freeze.rb +0 -37
- data/spec/unit/alf-support/config/test_hash_get.rb +0 -41
- data/spec/unit/alf-support/config/test_hash_set.rb +0 -61
- data/spec/unit/alf-support/config/test_helpers.rb +0 -33
- data/spec/unit/alf-support/config/test_merge.rb +0 -34
- data/spec/unit/alf-support/config/test_new.rb +0 -62
- data/spec/unit/alf-support/config/test_option.rb +0 -42
- data/spec/unit/alf-support/config/test_option_setter.rb +0 -72
- data/spec/unit/alf-support/config/test_options.rb +0 -22
- data/spec/unit/alf-support/scope/test_branch.rb +0 -28
- data/spec/unit/alf-support/scope/test_evaluate.rb +0 -42
- data/spec/unit/alf-support/scope/test_initialize.rb +0 -20
- data/spec/unit/alf-support/scope/test_respond_to.rb +0 -33
- data/spec/unit/alf-support/test_class_name.rb +0 -16
- data/spec/unit/alf-support/test_coerce.rb +0 -24
- data/spec/unit/alf-support/test_registry.rb +0 -63
- data/spec/unit/alf-support/test_ruby_case.rb +0 -16
- data/spec/unit/alf-support/test_rubycase_name.rb +0 -24
- data/spec/unit/alf-support/test_symbolize_keys.rb +0 -24
- data/spec/unit/alf-support/test_to_lispy.rb +0 -124
- data/spec/unit/alf-support/test_to_ruby_literal.rb +0 -26
- data/spec/unit/alf-support/test_to_tuple.rb +0 -29
- data/spec/unit/alf-support/test_tuple_scope.rb +0 -46
- data/spec/unit/alf-support/test_unsymbolize_keys.rb +0 -24
- data/spec/unit/alf-support/tuple_scope/test_evaluate.rb +0 -37
- data/spec/unit/alf-support/tuple_scope/test_hash_get.rb +0 -20
- data/spec/unit/alf-support/tuple_scope/test_respond_to.rb +0 -40
- data/spec/unit/alf-support/tuple_scope/test_to_s.rb +0 -22
- data/spec/unit/alf-types/attr_list/test_allbut.rb +0 -28
- data/spec/unit/alf-types/attr_list/test_ampersand.rb +0 -20
- data/spec/unit/alf-types/attr_list/test_coerce.rb +0 -68
- data/spec/unit/alf-types/attr_list/test_difference.rb +0 -20
- data/spec/unit/alf-types/attr_list/test_hash_and_eql.rb +0 -47
- data/spec/unit/alf-types/attr_list/test_include.rb +0 -22
- data/spec/unit/alf-types/attr_list/test_intersect.rb +0 -36
- data/spec/unit/alf-types/attr_list/test_or.rb +0 -20
- data/spec/unit/alf-types/attr_list/test_project.rb +0 -52
- data/spec/unit/alf-types/attr_list/test_project_tuple.rb +0 -31
- data/spec/unit/alf-types/attr_list/test_sameset.rb +0 -36
- data/spec/unit/alf-types/attr_list/test_set_compare.rb +0 -59
- data/spec/unit/alf-types/attr_list/test_split_tuple.rb +0 -31
- data/spec/unit/alf-types/attr_list/test_subset.rb +0 -50
- data/spec/unit/alf-types/attr_list/test_superset.rb +0 -50
- data/spec/unit/alf-types/attr_list/test_to_a.rb +0 -14
- data/spec/unit/alf-types/attr_list/test_to_ordering.rb +0 -19
- data/spec/unit/alf-types/attr_name/test_coerce.rb +0 -16
- data/spec/unit/alf-types/attr_name/test_triple_equal.rb +0 -27
- data/spec/unit/alf-types/heading/class/test_coerce.rb +0 -40
- data/spec/unit/alf-types/heading/class/test_infer.rb +0 -26
- data/spec/unit/alf-types/heading/test_allbut.rb +0 -12
- data/spec/unit/alf-types/heading/test_cardinality.rb +0 -25
- data/spec/unit/alf-types/heading/test_coerce.rb +0 -57
- data/spec/unit/alf-types/heading/test_comparison.rb +0 -96
- data/spec/unit/alf-types/heading/test_intersection.rb +0 -29
- data/spec/unit/alf-types/heading/test_merge.rb +0 -25
- data/spec/unit/alf-types/heading/test_project.rb +0 -20
- data/spec/unit/alf-types/heading/test_split.rb +0 -20
- data/spec/unit/alf-types/heading/test_to_h.rb +0 -24
- data/spec/unit/alf-types/heading/test_triple_equal.rb +0 -40
- data/spec/unit/alf-types/heading/test_union.rb +0 -33
- data/spec/unit/alf-types/keys/test_all.rb +0 -17
- data/spec/unit/alf-types/keys/test_ampersand.rb +0 -26
- data/spec/unit/alf-types/keys/test_any.rb +0 -17
- data/spec/unit/alf-types/keys/test_coerce.rb +0 -64
- data/spec/unit/alf-types/keys/test_empty.rb +0 -20
- data/spec/unit/alf-types/keys/test_first.rb +0 -17
- data/spec/unit/alf-types/keys/test_hash_and_equal.rb +0 -33
- data/spec/unit/alf-types/keys/test_if_empty.rb +0 -40
- data/spec/unit/alf-types/keys/test_map.rb +0 -17
- data/spec/unit/alf-types/keys/test_plus.rb +0 -26
- data/spec/unit/alf-types/keys/test_project.rb +0 -29
- data/spec/unit/alf-types/keys/test_reject.rb +0 -17
- data/spec/unit/alf-types/keys/test_rename.rb +0 -21
- data/spec/unit/alf-types/keys/test_select.rb +0 -66
- data/spec/unit/alf-types/ordering/test_coerce.rb +0 -77
- data/spec/unit/alf-types/ordering/test_compare.rb +0 -29
- data/spec/unit/alf-types/ordering/test_dive.rb +0 -41
- data/spec/unit/alf-types/ordering/test_hash_get.rb +0 -20
- data/spec/unit/alf-types/ordering/test_lte.rb +0 -43
- data/spec/unit/alf-types/ordering/test_merge.rb +0 -61
- data/spec/unit/alf-types/ordering/test_reverse.rb +0 -40
- data/spec/unit/alf-types/ordering/test_selectors.rb +0 -24
- data/spec/unit/alf-types/ordering/test_sorter.rb +0 -70
- data/spec/unit/alf-types/ordering/test_to_attr_list.rb +0 -26
- data/spec/unit/alf-types/ordering/test_total.rb +0 -56
- data/spec/unit/alf-types/renaming/test_coerce.rb +0 -24
- data/spec/unit/alf-types/renaming/test_complete.rb +0 -14
- data/spec/unit/alf-types/renaming/test_invert.rb +0 -14
- data/spec/unit/alf-types/renaming/test_rename_attr_list.rb +0 -24
- data/spec/unit/alf-types/renaming/test_rename_tuple.rb +0 -14
- data/spec/unit/alf-types/renaming/test_to_attr_list.rb +0 -14
- data/spec/unit/alf-types/selection/test_coerce.rb +0 -38
- data/spec/unit/alf-types/selection/test_select.rb +0 -34
- data/spec/unit/alf-types/selector/test_coerce.rb +0 -36
- data/spec/unit/alf-types/selector/test_composite_q.rb +0 -20
- data/spec/unit/alf-types/selector/test_dive.rb +0 -32
- data/spec/unit/alf-types/selector/test_select.rb +0 -40
- data/spec/unit/alf-types/selector/test_simple_q.rb +0 -20
- data/spec/unit/alf-types/selector/test_to_a.rb +0 -20
- data/spec/unit/alf-types/selector/test_to_lispy.rb +0 -20
- data/spec/unit/alf-types/selector/test_to_ruby_literal.rb +0 -20
- data/spec/unit/alf-types/size/test_coerce.rb +0 -23
- data/spec/unit/alf-types/size/test_triple_equal.rb +0 -25
- data/spec/unit/alf-types/summarization/test_coerce.rb +0 -31
- data/spec/unit/alf-types/summarization/test_least.rb +0 -11
- data/spec/unit/alf-types/summarization/test_summarize.rb +0 -15
- data/spec/unit/alf-types/test_attr_list.rb +0 -18
- data/spec/unit/alf-types/test_class_methods.rb +0 -59
- data/spec/unit/alf-types/test_heading.rb +0 -59
- data/spec/unit/alf-types/test_ordering.rb +0 -18
- data/spec/unit/alf-types/test_renaming.rb +0 -18
- data/spec/unit/alf-types/test_summarization.rb +0 -25
- data/spec/unit/alf-types/test_tuple_computation.rb +0 -28
- data/spec/unit/alf-types/test_tuple_expression.rb +0 -17
- data/spec/unit/alf-types/tuple_computation/test_coerce.rb +0 -45
- data/spec/unit/alf-types/tuple_computation/test_empty.rb +0 -24
- data/spec/unit/alf-types/tuple_computation/test_project.rb +0 -46
- data/spec/unit/alf-types/tuple_computation/test_to_attr_list.rb +0 -15
- data/spec/unit/alf-types/tuple_computation/test_to_heading.rb +0 -29
- data/spec/unit/alf-types/tuple_expression/test_coerce.rb +0 -35
- data/spec/unit/alf-types/tuple_expression/test_evaluate.rb +0 -30
- data/spec/unit/alf-types/tuple_expression/test_to_ruby_literal.rb +0 -11
- data/spec/unit/alf-types/type_check/test_triple_equal.rb +0 -58
- data/spec/unit/alf-update/deleter/test_autonum.rb +0 -31
- data/spec/unit/alf-update/deleter/test_clip.rb +0 -18
- data/spec/unit/alf-update/deleter/test_defaults.rb +0 -31
- data/spec/unit/alf-update/deleter/test_extend.rb +0 -31
- data/spec/unit/alf-update/deleter/test_group.rb +0 -31
- data/spec/unit/alf-update/deleter/test_identifier.rb +0 -19
- data/spec/unit/alf-update/deleter/test_intersect.rb +0 -21
- data/spec/unit/alf-update/deleter/test_project.rb +0 -18
- data/spec/unit/alf-update/deleter/test_rank.rb +0 -31
- data/spec/unit/alf-update/deleter/test_rename.rb +0 -31
- data/spec/unit/alf-update/deleter/test_restrict.rb +0 -20
- data/spec/unit/alf-update/deleter/test_sort.rb +0 -18
- data/spec/unit/alf-update/deleter/test_wrap.rb +0 -31
- data/spec/unit/alf-update/inserter/test_autonum.rb +0 -19
- data/spec/unit/alf-update/inserter/test_clip.rb +0 -21
- data/spec/unit/alf-update/inserter/test_compact.rb +0 -19
- data/spec/unit/alf-update/inserter/test_defaults.rb +0 -19
- data/spec/unit/alf-update/inserter/test_extend.rb +0 -19
- data/spec/unit/alf-update/inserter/test_group.rb +0 -26
- data/spec/unit/alf-update/inserter/test_identifier.rb +0 -18
- data/spec/unit/alf-update/inserter/test_intersect.rb +0 -22
- data/spec/unit/alf-update/inserter/test_join.rb +0 -21
- data/spec/unit/alf-update/inserter/test_matching.rb +0 -19
- data/spec/unit/alf-update/inserter/test_minus.rb +0 -19
- data/spec/unit/alf-update/inserter/test_not_matching.rb +0 -19
- data/spec/unit/alf-update/inserter/test_project.rb +0 -21
- data/spec/unit/alf-update/inserter/test_rank.rb +0 -19
- data/spec/unit/alf-update/inserter/test_rename.rb +0 -19
- data/spec/unit/alf-update/inserter/test_restrict.rb +0 -19
- data/spec/unit/alf-update/inserter/test_sort.rb +0 -19
- data/spec/unit/alf-update/inserter/test_union.rb +0 -22
- data/spec/unit/alf-update/inserter/test_wrap.rb +0 -25
- data/spec/unit/alf-update/updater/test_identifier.rb +0 -19
- data/spec/unit/alf-viewpoint/metadata/test_add_members.rb +0 -38
- data/spec/unit/alf-viewpoint/metadata/test_all_members.rb +0 -33
- data/spec/unit/alf-viewpoint/metadata/test_depends.rb +0 -50
- data/spec/unit/alf-viewpoint/metadata/test_dup.rb +0 -32
- data/spec/unit/alf-viewpoint/metadata/test_expand.rb +0 -31
- data/spec/unit/alf-viewpoint/metadata/test_expects.rb +0 -38
- data/spec/unit/alf-viewpoint/metadata/test_initialize.rb +0 -40
- data/spec/unit/alf-viewpoint/metadata/test_to_module.rb +0 -37
- data/spec/unit/alf-viewpoint/test_depends.rb +0 -18
- data/spec/unit/alf-viewpoint/test_expects.rb +0 -18
- data/spec/unit/alf-viewpoint/test_members.rb +0 -57
- data/spec/unit/alf-viewpoint/test_metadata.rb +0 -27
- data/spec/unit/alf-viewpoint/test_native.rb +0 -26
- data/spec/unit/alf-viewpoint/test_native_const.rb +0 -22
- data/spec/unit/alf-viewpoint/test_parse.rb +0 -36
- data/spec/unit/alf-viewpoint/test_parser.rb +0 -22
- data/spec/update_helper.rb +0 -85
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
class Database
|
4
|
-
describe Options, "parser" do
|
5
|
-
|
6
|
-
subject{ opts.parser }
|
7
|
-
|
8
|
-
let(:opts){ Options.new }
|
9
|
-
|
10
|
-
context 'by default' do
|
11
|
-
|
12
|
-
it { should be(Lang::Parser::Lispy) }
|
13
|
-
end
|
14
|
-
|
15
|
-
context 'when explicitely set' do
|
16
|
-
before{ opts.parser = Lang::Parser::Safer }
|
17
|
-
|
18
|
-
it{ should be(Lang::Parser::Safer) }
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
class Database
|
4
|
-
describe Options, "schema_cache?" do
|
5
|
-
|
6
|
-
subject{ opts.schema_cache? }
|
7
|
-
|
8
|
-
let(:opts){ Options.new }
|
9
|
-
|
10
|
-
context 'by default' do
|
11
|
-
|
12
|
-
it { should eq(true) }
|
13
|
-
end
|
14
|
-
|
15
|
-
context 'when explicitely set' do
|
16
|
-
before{ opts.schema_cache = false }
|
17
|
-
|
18
|
-
it{ should eq(false) }
|
19
|
-
end
|
20
|
-
|
21
|
-
context 'when explicitely set but coercion needed' do
|
22
|
-
before{ opts.schema_cache = "false" }
|
23
|
-
|
24
|
-
it{ should eq(false) }
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
class Database
|
4
|
-
describe Options, "viewpoint" do
|
5
|
-
|
6
|
-
subject{ opts.viewpoint }
|
7
|
-
|
8
|
-
let(:opts){ Options.new }
|
9
|
-
|
10
|
-
context 'by default' do
|
11
|
-
|
12
|
-
it { should be(Viewpoint::NATIVE) }
|
13
|
-
end
|
14
|
-
|
15
|
-
context 'when explicitely set' do
|
16
|
-
let(:mod){ Module.new{ include Alf::Viewpoint } }
|
17
|
-
|
18
|
-
before{ opts.viewpoint = mod }
|
19
|
-
|
20
|
-
it{ should be(mod) }
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Cog, "to_cog" do
|
5
|
-
|
6
|
-
let(:cog){ Clip.new([], AttrList[:name], true) }
|
7
|
-
|
8
|
-
subject{ cog.to_ascii_tree }
|
9
|
-
|
10
|
-
it { should eq("Clip ..., [:name], {:allbut => true}\n+-- []\n") }
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Compact::Set do
|
5
|
-
|
6
|
-
it 'should work on an empty operand' do
|
7
|
-
Compact::Set.new([]).to_a.should eq([])
|
8
|
-
end
|
9
|
-
|
10
|
-
it 'should work when no duplicate is present' do
|
11
|
-
rel = [
|
12
|
-
{:name => "Jones"},
|
13
|
-
{:name => "Smith"}
|
14
|
-
]
|
15
|
-
Compact::Set.new(rel).to_set.should eq(rel.to_set)
|
16
|
-
end
|
17
|
-
|
18
|
-
it 'should work when duplicates are present' do
|
19
|
-
rel = [
|
20
|
-
{:name => "Jones"},
|
21
|
-
{:name => "Smith"},
|
22
|
-
{:name => "Jones"},
|
23
|
-
]
|
24
|
-
exp = [
|
25
|
-
{:name => "Jones"},
|
26
|
-
{:name => "Smith"}
|
27
|
-
]
|
28
|
-
Compact::Set.new(rel).to_set.should eq(exp.to_set)
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
end # module Engine
|
33
|
-
end # module Alf
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Compact::Uniq do
|
5
|
-
|
6
|
-
it 'should work on an empty operand' do
|
7
|
-
Compact::Uniq.new([]).to_a.should eq([])
|
8
|
-
end
|
9
|
-
|
10
|
-
it 'should work when no duplicate is present' do
|
11
|
-
rel = [
|
12
|
-
{:name => "Jones"},
|
13
|
-
{:name => "Smith"}
|
14
|
-
]
|
15
|
-
Compact::Uniq.new(rel).to_a.should eq(rel)
|
16
|
-
end
|
17
|
-
|
18
|
-
it 'should work when duplicates are present' do
|
19
|
-
rel = [
|
20
|
-
{:name => "Jones"},
|
21
|
-
{:name => "Smith"},
|
22
|
-
{:name => "Jones"},
|
23
|
-
]
|
24
|
-
exp = [
|
25
|
-
{:name => "Jones"},
|
26
|
-
{:name => "Smith"}
|
27
|
-
]
|
28
|
-
Compact::Uniq.new(rel).to_a.should eq(exp)
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
end # module Engine
|
33
|
-
end # module Alf
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Group::Hash do
|
5
|
-
|
6
|
-
let(:operand){[
|
7
|
-
{name: "Smith", city: "London"},
|
8
|
-
{name: "Jones", city: "Paris"},
|
9
|
-
{name: "Blake", city: "London"},
|
10
|
-
]}
|
11
|
-
|
12
|
-
let(:expected){[
|
13
|
-
{ city: "London", suppliers: Relation(name: ["Smith", "Blake"]) },
|
14
|
-
{ city: "Paris", suppliers: Relation(name: ["Jones"]) },
|
15
|
-
].to_set}
|
16
|
-
|
17
|
-
it 'should group specified attributes' do
|
18
|
-
op = Group::Hash.new(operand, AttrList[:name], :suppliers, false)
|
19
|
-
op.to_set.should eq(expected)
|
20
|
-
end
|
21
|
-
|
22
|
-
it 'should allow specifying allbut grouping' do
|
23
|
-
op = Group::Hash.new(operand, AttrList[:city], :suppliers, true)
|
24
|
-
op.to_set.should eq(expected)
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
end # module Engine
|
29
|
-
end # module Alf
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Hierarchize, "renaming" do
|
5
|
-
|
6
|
-
let(:hierarchize){
|
7
|
-
Hierarchize.new([], AttrList[:id, :subid], AttrList[:parent, :subparent], :children)
|
8
|
-
}
|
9
|
-
|
10
|
-
subject{
|
11
|
-
hierarchize.send(:renamer)
|
12
|
-
}
|
13
|
-
|
14
|
-
it{ should eq(Renaming[parent: :id, subparent: :subid]) }
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe InferHeading, 'heading' do
|
5
|
-
|
6
|
-
let(:ih){ InferHeading.new([]) }
|
7
|
-
|
8
|
-
subject{ ih.send(:heading, tuple) }
|
9
|
-
|
10
|
-
context 'on a single tuple' do
|
11
|
-
let(:tuple){ {id: 1, name: "Jones"} }
|
12
|
-
|
13
|
-
it{ should eq(Heading.new(id: Fixnum, name: String)) }
|
14
|
-
end
|
15
|
-
|
16
|
-
context 'on a tuple with tuple-valued attribute' do
|
17
|
-
let(:tuple){ {id: 1, hobby: Tuple(name: "Programming")} }
|
18
|
-
|
19
|
-
it{ should eq(Heading.new(id: Fixnum, hobby: Tuple[name: String])) }
|
20
|
-
end
|
21
|
-
|
22
|
-
context 'on a tuple with relation-valued attribute' do
|
23
|
-
let(:tuple){ {id: 1, hobby: Relation(name: "Programming")} }
|
24
|
-
|
25
|
-
it{ should eq(Heading.new(id: Fixnum, hobby: Relation[name: String])) }
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
29
|
-
end # module Engine
|
30
|
-
end # module Alf
|
@@ -1,55 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Join::Hash do
|
5
|
-
|
6
|
-
let(:suppliers) {[
|
7
|
-
{:sid => 'S1', :city => 'London'},
|
8
|
-
{:sid => 'S2', :city => 'Paris'},
|
9
|
-
{:sid => 'S3', :city => 'Paris'}
|
10
|
-
]}
|
11
|
-
|
12
|
-
let(:statuses) {[
|
13
|
-
{:sid => 'S1', :status => 20},
|
14
|
-
{:sid => 'S2', :status => 10},
|
15
|
-
{:sid => 'S3', :status => 30}
|
16
|
-
]}
|
17
|
-
|
18
|
-
let(:countries) {[
|
19
|
-
{:city => 'London', :country => 'England'},
|
20
|
-
{:city => 'Paris', :country => 'France'},
|
21
|
-
{:city => 'Bruxelles', :country => 'Belgium'}
|
22
|
-
]}
|
23
|
-
|
24
|
-
context "when applied on candidate keys on both sides" do
|
25
|
-
subject{ Join::Hash.new(suppliers, statuses).to_a }
|
26
|
-
let(:expected){[
|
27
|
-
{:sid => 'S1', :city => 'London', :status => 20},
|
28
|
-
{:sid => 'S2', :city => 'Paris', :status => 10},
|
29
|
-
{:sid => 'S3', :city => 'Paris', :status => 30}
|
30
|
-
]}
|
31
|
-
it { should == expected }
|
32
|
-
end
|
33
|
-
|
34
|
-
context "when applied on a typical foreign key" do
|
35
|
-
subject{ Join::Hash.new(suppliers, countries).to_a }
|
36
|
-
let(:expected){[
|
37
|
-
{:sid => 'S1', :city => 'London', :country => 'England'},
|
38
|
-
{:sid => 'S2', :city => 'Paris', :country => 'France'},
|
39
|
-
{:sid => 'S3', :city => 'Paris', :country => 'France'}
|
40
|
-
]}
|
41
|
-
it { should == expected }
|
42
|
-
end
|
43
|
-
|
44
|
-
context "when applied with no attributes in common" do
|
45
|
-
subject{ Join::Hash.new(statuses, countries).to_a }
|
46
|
-
let(:expected){
|
47
|
-
statuses.collect{|s| countries.collect{|c| c.merge(s)}}.flatten
|
48
|
-
}
|
49
|
-
it { should == expected }
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
end # module Engine
|
54
|
-
end # module Alf
|
55
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Materialize::Array do
|
5
|
-
|
6
|
-
let(:operand){[
|
7
|
-
{:name => "Smith", :city => "London"},
|
8
|
-
{:name => "Jones", :city => "Paris"},
|
9
|
-
{:name => "Blake", :city => "Athens"},
|
10
|
-
]}
|
11
|
-
|
12
|
-
it 'should act as a normal cog' do
|
13
|
-
op = Materialize::Array.new(operand)
|
14
|
-
op.to_a.should eq(operand)
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should allow specifying an ordering' do
|
18
|
-
op = Materialize::Array.new(operand, Ordering[[:name, :desc]])
|
19
|
-
op.to_a.should eq([
|
20
|
-
{:name => "Smith", :city => "London"},
|
21
|
-
{:name => "Jones", :city => "Paris"},
|
22
|
-
{:name => "Blake", :city => "Athens"},
|
23
|
-
])
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
end # module Engine
|
28
|
-
end # module Alf
|
@@ -1,76 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Materialize::Hash do
|
5
|
-
|
6
|
-
let(:operand){[
|
7
|
-
{:name => "Smith", :city => "London"},
|
8
|
-
{:name => "Jones", :city => "Paris"},
|
9
|
-
{:name => "Smith", :city => "Athens"},
|
10
|
-
]}
|
11
|
-
|
12
|
-
it 'should act as a normal cog' do
|
13
|
-
op = Materialize::Hash.new(operand, AttrList[:name])
|
14
|
-
op.to_set.should eq(operand.to_set)
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should allow allbut hashing' do
|
18
|
-
op = Materialize::Hash.new(operand, AttrList[:city], true)
|
19
|
-
op.to_set.should eq(operand.to_set)
|
20
|
-
end
|
21
|
-
|
22
|
-
it 'should allow lazy projection attributes' do
|
23
|
-
op = Materialize::Hash.new(operand, lambda{|tuple|
|
24
|
-
tuple.should eq({:name => "Smith", :city => "London"})
|
25
|
-
AttrList[:name]
|
26
|
-
})
|
27
|
-
op.to_set.should eq(operand.to_set)
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should have a each_pair method' do
|
31
|
-
op = Materialize::Hash.new(operand, AttrList[:name])
|
32
|
-
seen = []
|
33
|
-
op.each_pair do |k,v|
|
34
|
-
seen << [k,v]
|
35
|
-
end
|
36
|
-
seen.to_set.should eq([
|
37
|
-
[{:name => "Smith"}, operand.select{|t| t[:name] == "Smith"}],
|
38
|
-
[{:name => "Jones"}, operand.select{|t| t[:name] == "Jones"}]
|
39
|
-
].to_set)
|
40
|
-
end
|
41
|
-
|
42
|
-
describe "the indexed access" do
|
43
|
-
|
44
|
-
it 'should return the expected tuples' do
|
45
|
-
op = Materialize::Hash.new(operand, AttrList[:name])
|
46
|
-
op[{:name => "Jones"}].to_a.should eq([
|
47
|
-
{:name => "Jones", :city => "Paris"},
|
48
|
-
])
|
49
|
-
op[{:name => "Smith"}].to_a.should eq([
|
50
|
-
{:name => "Smith", :city => "London"},
|
51
|
-
{:name => "Smith", :city => "Athens"},
|
52
|
-
])
|
53
|
-
op[{:name => "NoSuchOne"}].to_a.should eq([])
|
54
|
-
end
|
55
|
-
|
56
|
-
it 'should allow late projection' do
|
57
|
-
op = Materialize::Hash.new(operand, AttrList[:name])
|
58
|
-
op[{:name => "Smith", :city => "London"}, true].to_a.should eq([
|
59
|
-
{:name => "Smith", :city => "London"},
|
60
|
-
{:name => "Smith", :city => "Athens"},
|
61
|
-
])
|
62
|
-
end
|
63
|
-
|
64
|
-
it 'late projection should work with allbut indexing' do
|
65
|
-
op = Materialize::Hash.new(operand, AttrList[:city], true)
|
66
|
-
op[{:name => "Smith", :city => "London"}, true].to_a.should eq([
|
67
|
-
{:name => "Smith", :city => "London"},
|
68
|
-
{:name => "Smith", :city => "Athens"},
|
69
|
-
])
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|
73
|
-
|
74
|
-
end
|
75
|
-
end # module Engine
|
76
|
-
end # module Alf
|
@@ -1,34 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module Alf
|
3
|
-
module Engine
|
4
|
-
describe Quota::Cesure do
|
5
|
-
|
6
|
-
let(:input) {[
|
7
|
-
{:a => "via_method", :time => 1},
|
8
|
-
{:a => "via_method", :time => 2},
|
9
|
-
{:a => "via_method", :time => 3},
|
10
|
-
{:a => "via_reader", :time => 2},
|
11
|
-
{:a => "via_reader", :time => 4},
|
12
|
-
]}
|
13
|
-
|
14
|
-
let(:expected) {[
|
15
|
-
{:a => "via_method", :time => 1, :time_sum => 1, :time_max => 1},
|
16
|
-
{:a => "via_method", :time => 2, :time_sum => 3, :time_max => 2},
|
17
|
-
{:a => "via_method", :time => 3, :time_sum => 6, :time_max => 3},
|
18
|
-
{:a => "via_reader", :time => 2, :time_sum => 2, :time_max => 2},
|
19
|
-
{:a => "via_reader", :time => 4, :time_sum => 6, :time_max => 4},
|
20
|
-
]}
|
21
|
-
|
22
|
-
it 'should compute as expected' do
|
23
|
-
sums = Summarization[
|
24
|
-
:time_sum => Aggregator.sum{ time },
|
25
|
-
:time_max => Aggregator.max{ time }
|
26
|
-
]
|
27
|
-
by = AttrList[:a]
|
28
|
-
op = Engine::Quota::Cesure.new(Leaf.new(input), by, sums)
|
29
|
-
op.to_a.should eq(expected)
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|