Fixes evaluation of negative SPARQL Update testsuite tests

pull/190/head
Tpt 3 years ago
parent 579641909c
commit 842dc5fd75
  1. 2
      testsuite/src/sparql_evaluator.rs
  2. 5
      testsuite/tests/sparql.rs

@ -243,7 +243,7 @@ fn evaluate_negative_update_syntax_test(test: &Test) -> Result<()> {
.action .action
.as_deref() .as_deref()
.ok_or_else(|| anyhow!("No action found for test {}", test))?; .ok_or_else(|| anyhow!("No action found for test {}", test))?;
match Query::parse(&read_file_to_string(update_file)?, Some(update_file)) { match Update::parse(&read_file_to_string(update_file)?, Some(update_file)) {
Ok(result) => Err(anyhow!( Ok(result) => Err(anyhow!(
"Oxigraph parses even if it should not {}. The output tree is: {}", "Oxigraph parses even if it should not {}. The output tree is: {}",
test, test,

@ -94,7 +94,10 @@ fn sparql11_federation_w3c_evaluation_testsuite() -> Result<()> {
fn sparql11_update_w3c_evaluation_testsuite() -> Result<()> { fn sparql11_update_w3c_evaluation_testsuite() -> Result<()> {
run_testsuite( run_testsuite(
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/manifest-sparql11-update.ttl", "http://www.w3.org/2009/sparql/docs/tests/data-sparql11/manifest-sparql11-update.ttl",
vec![], vec![
// We allow multiple INSERT DATA with the same blank nodes
"http://www.w3.org/2009/sparql/docs/tests/data-sparql11/syntax-update-1/manifest#test_54",
],
) )
} }

Loading…
Cancel
Save