SPARQL tests: fixes results isomorphism test

pull/190/head
Tpt 3 years ago
parent a582847bd7
commit c2668ff881
  1. 1
      testsuite/src/sparql_evaluator.rs
  2. 4
      testsuite/tests/sparql.rs

@ -445,6 +445,7 @@ fn are_query_results_isomorphic(
}, },
) => { ) => {
expected_variables == actual_variables expected_variables == actual_variables
&& expected_solutions.len() == actual_solutions.len()
&& if *ordered { && if *ordered {
expected_solutions.iter().zip(actual_solutions).all( expected_solutions.iter().zip(actual_solutions).all(
|(expected_solution, actual_solution)| { |(expected_solution, actual_solution)| {

@ -60,7 +60,9 @@ fn sparql10_w3c_query_evaluation_testsuite() -> Result<()> {
// We use XSD 1.1 equality on dates // We use XSD 1.1 equality on dates
"http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/manifest#date-2", "http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/manifest#date-2",
// We choose to simplify first the nested group patterns in OPTIONAL // We choose to simplify first the nested group patterns in OPTIONAL
"http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/manifest#dawg-optional-filter-005-not-simplified" "http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/manifest#dawg-optional-filter-005-not-simplified",
// This test relies on naive iteration on the input file
"http://www.w3.org/2001/sw/DataAccess/tests/data-r2/reduced/manifest#reduced-2"
]) ])
} }

Loading…
Cancel
Save