From 842dc5fd75d8294817c2401796f390a22e7a694b Mon Sep 17 00:00:00 2001 From: Tpt Date: Wed, 12 Jan 2022 22:33:26 +0100 Subject: [PATCH] Fixes evaluation of negative SPARQL Update testsuite tests --- testsuite/src/sparql_evaluator.rs | 2 +- testsuite/tests/sparql.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/testsuite/src/sparql_evaluator.rs b/testsuite/src/sparql_evaluator.rs index b6f91160..030b1936 100644 --- a/testsuite/src/sparql_evaluator.rs +++ b/testsuite/src/sparql_evaluator.rs @@ -243,7 +243,7 @@ fn evaluate_negative_update_syntax_test(test: &Test) -> Result<()> { .action .as_deref() .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!( "Oxigraph parses even if it should not {}. The output tree is: {}", test, diff --git a/testsuite/tests/sparql.rs b/testsuite/tests/sparql.rs index db8b337e..c12cd26f 100644 --- a/testsuite/tests/sparql.rs +++ b/testsuite/tests/sparql.rs @@ -94,7 +94,10 @@ fn sparql11_federation_w3c_evaluation_testsuite() -> Result<()> { fn sparql11_update_w3c_evaluation_testsuite() -> Result<()> { run_testsuite( "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", + ], ) }