Adds a test for xsd:string and plain literal equality

pull/46/head
Tpt 4 years ago
parent f569bbc2a1
commit d3d78b9713
  1. 13
      lib/src/model/literal.rs

@ -341,3 +341,16 @@ impl<'a> From<&'a Literal> for rio::Literal<'a> {
}
}
}
#[cfg(test)]
mod test {
use super::*;
#[test]
fn test_simple_literal_equality() {
assert_eq!(
Literal::new_simple_literal("foo"),
Literal::new_typed_literal("foo", xsd::STRING.clone())
)
}
}

Loading…
Cancel
Save