1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
#![cfg(test)]
use anyhow::Result;
use oxigraph_testsuite::check_testsuite;
#[cfg(not(windows))] // Tests don't like git auto "\r\n" on Windows
#[test]
fn oxigraph_parser_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/parser/manifest.ttl",
&[],
)
}
#[test]
fn oxigraph_parser_recovery_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/parser-recovery/manifest.ttl",
&[],
)
}
#[cfg(not(windows))] // Tests don't like git auto "\r\n" on Windows
#[test]
fn oxigraph_parser_lenient_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/parser-lenient/manifest.ttl",
&[],
)
}
#[test]
fn oxigraph_parser_error_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/parser-error/manifest.ttl",
&[],
)
}
#[test]
#[ignore]
fn oxigraph_jsonld_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/jsonld/manifest.jsonld",
&[],
)
}
#[test]
fn oxigraph_sparql_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/sparql/manifest.ttl",
&[],
)
}
#[test]
fn oxigraph_sparql_results_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/sparql-results/manifest.ttl",
&[],
)
}
#[cfg(all(target_pointer_width = "64", target_endian = "little"))] // Hashing is different in 32 bits or on big endian, leading to different ordering
#[test]
fn oxigraph_optimizer_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/sparql-optimization/manifest.ttl",
&[],
)
}
#[test]
#[ignore]
fn oxigraph_geosparql_testsuite() -> Result<()> {
check_testsuite(
"https://github.com/oxigraph/oxigraph/tests/geosparql/manifest.ttl",
&[],
)
}
|