chore: cleanup tests

pull/795/head
Jesse Wright 1 year ago
parent b888d019cb
commit 40db982131
  1. 6
      lib/oxrdf/src/triple.rs

@ -1267,16 +1267,14 @@ impl<'a> From<QuadRef<'a>> for Quad {
}
}
#[cfg(feature = "rdf-star")]
#[cfg(test)]
mod tests {
#![allow(clippy::panic_in_result_fn)]
use crate::{Literal, BlankNode};
use super::*;
#[test]
#[cfg(feature = "rdf-star")]
fn casting_triple() {
let triple = Triple {
subject: NamedNode::new("http://example.org/s").unwrap().into(),
@ -1299,7 +1297,6 @@ mod tests {
}
#[test]
#[cfg(feature = "rdf-star")]
fn constructing_triple() {
let optional_triple = Triple::new_maybe(
Term::NamedNode(NamedNode::new("http://example.org/test").unwrap()),
@ -1324,7 +1321,6 @@ mod tests {
}
#[test]
#[cfg(feature = "rdf-star")]
fn casting_subject() {
let triple = Triple {
subject: NamedNode::new("http://example.org/s").unwrap().into(),

Loading…
Cancel
Save