|
|
@ -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( |
|
|
|