|
|
|
@ -2,92 +2,107 @@ use anyhow::Result; |
|
|
|
|
use oxigraph_testsuite::check_testsuite; |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn ntriples_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite("http://w3c.github.io/rdf-tests/ntriples/manifest.ttl", &[]) |
|
|
|
|
fn rdf11_n_triples_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-n-triples/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn nquads_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite("http://w3c.github.io/rdf-tests/nquads/manifest.ttl", &[]) |
|
|
|
|
fn rdf12_n_triples_syntax_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf12/rdf-n-triples/syntax/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(not(windows))] // Tests don't like git auto "\r\n" on Windows
|
|
|
|
|
#[test] |
|
|
|
|
fn turtle_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite("http://w3c.github.io/rdf-tests/turtle/manifest.ttl", &[]) |
|
|
|
|
fn rdf11_n_quads_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-n-quads/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(not(windows))] // Tests don't like git auto "\r\n" on Windows
|
|
|
|
|
#[test] |
|
|
|
|
fn trig_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite("http://w3c.github.io/rdf-tests/trig/manifest.ttl", &[]) |
|
|
|
|
fn rdf11_turtle_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-turtle/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn n3_parser_testsuite() -> Result<()> { |
|
|
|
|
fn rdf12_turtle_syntax_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/N3/tests/N3Tests/manifest-parser.ttl", |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf12/rdf-turtle/syntax/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn n3_extended_testsuite() -> Result<()> { |
|
|
|
|
fn rdf12_turtle_eval_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/N3/tests/N3Tests/manifest-extended.ttl", |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf12/rdf-turtle/eval/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(not(windows))] // Tests don't like git auto "\r\n" on Windows
|
|
|
|
|
#[test] |
|
|
|
|
fn n3_turtle_testsuite() -> Result<()> { |
|
|
|
|
fn rdf11_trig_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/N3/tests/TurtleTests/manifest.ttl", |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-trig/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn rdf_xml_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite("http://www.w3.org/2013/RDFXMLTests/manifest.ttl", &[]) |
|
|
|
|
fn rdf12_trig_syntax_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf12/rdf-trig/syntax/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn ntriples_star_w3c_testsuite() -> Result<()> { |
|
|
|
|
fn rdf12_trig_eval_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-star/tests/nt/syntax/manifest.ttl", |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf12/rdf-trig/eval/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn turtle_star_syntax_w3c_testsuite() -> Result<()> { |
|
|
|
|
fn rdf11_xml_w3c_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-star/tests/turtle/syntax/manifest.ttl", |
|
|
|
|
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-xml/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn turtle_star_eval_w3c_testsuite() -> Result<()> { |
|
|
|
|
fn n3_parser_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-star/tests/turtle/eval/manifest.ttl", |
|
|
|
|
"https://w3c.github.io/N3/tests/N3Tests/manifest-parser.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn trig_star_syntax_w3c_testsuite() -> Result<()> { |
|
|
|
|
fn n3_extended_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-star/tests/trig/syntax/manifest.ttl", |
|
|
|
|
"https://w3c.github.io/N3/tests/N3Tests/manifest-extended.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(not(windows))] // Tests don't like git auto "\r\n" on Windows
|
|
|
|
|
#[test] |
|
|
|
|
fn trig_star_eval_w3c_testsuite() -> Result<()> { |
|
|
|
|
fn n3_turtle_testsuite() -> Result<()> { |
|
|
|
|
check_testsuite( |
|
|
|
|
"https://w3c.github.io/rdf-star/tests/trig/eval/manifest.ttl", |
|
|
|
|
"https://w3c.github.io/N3/tests/TurtleTests/manifest.ttl", |
|
|
|
|
&[], |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|