diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2025-12-04 00:44:06 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-04 00:44:06 -0300 |
| commit | c4e1b573dacd67277ea9df1751574ef2dfb44601 (patch) | |
| tree | 65c25171935e503716a694383dc19a5b300140a0 /test/query_pipeline_test.erl | |
| parent | ac7b0497ed6d13605fdb4cd4bda557d9182e3037 (diff) | |
| download | Sakura-c4e1b573dacd67277ea9df1751574ef2dfb44601.tar.gz Sakura-c4e1b573dacd67277ea9df1751574ef2dfb44601.zip | |
Infinite domains and membership rework (#22)
Diffstat (limited to 'test/query_pipeline_test.erl')
| -rw-r--r-- | test/query_pipeline_test.erl | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/test/query_pipeline_test.erl b/test/query_pipeline_test.erl index 389ff7c..a76c2ff 100644 --- a/test/query_pipeline_test.erl +++ b/test/query_pipeline_test.erl @@ -139,18 +139,11 @@ test_materialize_finite(DB) -> ]. test_materialize_infinite(DB) -> - %% Create infinite naturals - {DB1, _} = operations:create_infinite_relation(DB, #{ - name => naturals, - schema => #{}, - cardinality => aleph_zero, - generator => {primitive, naturals}, - constraints => #{value => {gte, 0}} - }), + %% Naturals are built-in, no need to create them %% Take 100 and materialize - Pipeline = operations:get_tuples_iterator(DB1, naturals, #{value => {range, 0, 99}}), - {_DB2, Naturals100} = operations:materialize(DB1, Pipeline, naturals_100), + Pipeline = operations:get_tuples_iterator(DB, natural, #{value => {range, 0, 99}}), + {_DB2, Naturals100} = operations:materialize(DB, Pipeline, naturals_100), [ ?_assertEqual({finite, 100}, Naturals100#relation.cardinality), |
