diff options
Diffstat (limited to 'src/doc.rs')
| -rw-r--r-- | src/doc.rs | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -683,20 +683,19 @@ cast_to_value! { #[cfg(test)] mod tests { - use crate::{doc::Region, util::option_eq}; - - #[test] - fn test_partialeq_str() { - let region = Region([b'U', b'S']); - assert_eq!(region, "US"); - assert_ne!(region, "AB"); - } + use super::*; + use crate::util::option_eq; #[test] fn test_region_option_eq() { let region = Some(Region([b'U', b'S'])); - assert!(option_eq(region, "US")); assert!(!option_eq(region, "AB")); } + + #[test] + fn test_document_is_send() { + fn ensure_send<T: Send>() {} + ensure_send::<Document>(); + } } |
