diff options
author | 2023-05-01 02:07:23 +0200 | |
---|---|---|
committer | 2023-05-01 02:42:34 +0200 | |
commit | 4e698774925468062974b990143c1091e23ed63b (patch) | |
tree | 21f2fc38b6b3b5f3be6ecbdee100d385a2e92c05 /subprojects/store-query-viatra/src/test | |
parent | fix(web): editor cursor styling (diff) | |
download | refinery-4e698774925468062974b990143c1091e23ed63b.tar.gz refinery-4e698774925468062974b990143c1091e23ed63b.tar.zst refinery-4e698774925468062974b990143c1091e23ed63b.zip |
feat: query parameter binding validation
* Introduce parameter directions for constraints and DNF
* Introduce variable directions for literals
* Infer and check variable directions in DNF and topologically sort literals by
their input variables
Diffstat (limited to 'subprojects/store-query-viatra/src/test')
-rw-r--r-- | subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/DiagonalQueryTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/DiagonalQueryTest.java b/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/DiagonalQueryTest.java index 56ddb9b4..86a27f5b 100644 --- a/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/DiagonalQueryTest.java +++ b/subprojects/store-query-viatra/src/test/java/tools/refinery/store/query/viatra/DiagonalQueryTest.java | |||
@@ -298,10 +298,10 @@ class DiagonalQueryTest { | |||
298 | y.assign(x) | 298 | y.assign(x) |
299 | ); | 299 | ); |
300 | }); | 300 | }); |
301 | var query = Query.of("Diagonal", Integer.class, (builder, p1, output) -> builder.clause(Integer.class, | 301 | var query = Query.of("Diagonal", Integer.class, (builder, p1, output) -> builder.clause( |
302 | (p2, y) -> List.of( | 302 | Integer.class, Integer.class, (p2, y, z) -> List.of( |
303 | personView.call(p1), | 303 | personView.call(p1), |
304 | output.assign(subQuery.aggregate(y, INT_SUM, p1, p1, p2, p2, y, y)) | 304 | output.assign(subQuery.aggregate(y, INT_SUM, p1, p1, p2, p2, y, z)) |
305 | ))); | 305 | ))); |
306 | 306 | ||
307 | var store = ModelStore.builder() | 307 | var store = ModelStore.builder() |