Test: fixes SPARQL query results isomorphism

pull/461/head
Tpt 2 years ago committed by Thomas Tanon
parent f41c499ef3
commit feeaf17fe6
  1. 3
      testsuite/src/sparql_evaluator.rs

@ -453,7 +453,8 @@ fn are_query_results_isomorphic(
fn compare_solutions(expected: &[(Variable, Term)], actual: &[(Variable, Term)]) -> bool { fn compare_solutions(expected: &[(Variable, Term)], actual: &[(Variable, Term)]) -> bool {
let mut bnode_map = HashMap::new(); let mut bnode_map = HashMap::new();
expected.iter().zip(actual).all( expected.len() == actual.len()
&& expected.iter().zip(actual).all(
move |((expected_variable, expected_value), (actual_variable, actual_value))| { move |((expected_variable, expected_value), (actual_variable, actual_value))| {
expected_variable == actual_variable expected_variable == actual_variable
&& compare_terms( && compare_terms(

Loading…
Cancel
Save