Skip to content

Commit 9e92234

Browse files
committed
add failing test
1 parent 1640d93 commit 9e92234

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

testsuites/sparql/src/main/java/org/eclipse/rdf4j/testsuite/sparql/RepositorySPARQLComplianceTestSuite.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import org.eclipse.rdf4j.testsuite.sparql.tests.OptionalTest;
3939
import org.eclipse.rdf4j.testsuite.sparql.tests.OrderByTest;
4040
import org.eclipse.rdf4j.testsuite.sparql.tests.PropertyPathTest;
41+
import org.eclipse.rdf4j.testsuite.sparql.tests.SparqlMinusScopingTests;
4142
import org.eclipse.rdf4j.testsuite.sparql.tests.SubselectTest;
4243
import org.eclipse.rdf4j.testsuite.sparql.tests.UnionTest;
4344
import org.eclipse.rdf4j.testsuite.sparql.tests.ValuesTest;
@@ -153,6 +154,11 @@ Stream<DynamicTest> minus() throws RDF4JException, IOException {
153154
return new MinusTest(this::getEmptyInitializedRepository).tests();
154155
}
155156

157+
@TestFactory
158+
Stream<DynamicTest> minusScope() throws RDF4JException, IOException {
159+
return new SparqlMinusScopingTests(this::getEmptyInitializedRepository).tests();
160+
}
161+
156162
@BeforeAll
157163
public static void setUpClass() {
158164
System.setProperty("org.eclipse.rdf4j.repository.debug", "true");

testsuites/sparql/src/main/java/org/eclipse/rdf4j/testsuite/sparql/tests/SparqlMinusScopingTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,7 @@ void T21_not_exists_over_optional_is_always_false_here(RepositoryConnection conn
357357
" ?x :name ?n .\n" +
358358
" FILTER NOT EXISTS { OPTIONAL { ?x :formerName ?n } }\n" +
359359
"}");
360-
assertEquals(List.of(), rows,
361-
"Rewriting MINUS{OPTIONAL{…}} to NOT EXISTS { OPTIONAL{…} } is wrong: the inner group always yields at least the empty mapping.");
360+
assertEquals(List.of(), rows);
362361
}
363362

364363
void T22_graph_isolation_same_g_on_both_sides_no_removal_when_values_differ(RepositoryConnection conn)

0 commit comments

Comments
 (0)