extern crate horned_functional;
extern crate horned_owl;
use horned_owl::ontology::set::SetOntology;
macro_rules! foundrytest {
( $(#[$attr:meta])* $name:ident) => (
#[test]
$(#[$attr])*
fn $name() {
let path = std::path::PathBuf::from(file!())
.parent()
.unwrap()
.join("data")
.join(stringify!($name))
.with_extension("obo.ofn");
let txt = std::fs::read_to_string(&path).unwrap();
if let Err(e) = horned_functional::from_str::<SetOntology, _>(&txt) {
panic!("could not parse {}: {}", stringify!($name), e);
}
}
);
}
foundrytest!(aero);
foundrytest!(apo);
foundrytest!(cio);
foundrytest!(hao);
foundrytest!(ms);
foundrytest!(peco);
foundrytest!(plana);
foundrytest!(symp);
foundrytest!(to);
foundrytest!(
#[ignore]
ecocore
);
foundrytest!(
#[ignore]
cl
);
foundrytest!(
#[ignore]
ro
);