Skip to content

Commit

Permalink
Merge pull request #390 from EvgSkv/ti2023
Browse files Browse the repository at this point in the history
Test of iterative functor.
  • Loading branch information
EvgSkv authored Oct 11, 2024
2 parents d1425f1 + b9d112b commit 7abb7c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion integration_tests/sqlite_deep_recursion_test.l
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@

@Engine("sqlite");

S() = 0;

@Recursive(N, 1000);
N() = 0;
N() = S();
N() = N() + 1;

@Recursive(N30, 30);
Expand All @@ -29,7 +31,11 @@ N30() = N30() + 1;
N29() = 0;
N29() = N29() + 1;

SM() = 100;
M := N(S: SM);

@OrderBy(Test, "col0");
Test("M") Max= M();
Test("N") Max= N();
Test("N30") Max= N30();
Test("N29") Max= N29();
1 change: 1 addition & 0 deletions integration_tests/sqlite_deep_recursion_test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+------+--------------+
| col0 | logica_value |
+------+--------------+
| M | 1100 |
| N | 1000 |
| N29 | 29 |
| N30 | 30 |
Expand Down

0 comments on commit 7abb7c6

Please sign in to comment.