1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//! Object system and identity management. mod object_base; mod properties; pub use crate::core::ObjectId; pub use object_base::Object; pub use properties::PropertyValue; #[cfg(test)] mod tests { use super::*; #[test] fn object_creation() { let obj = Object::new("test"); assert_eq!(obj.class_name(), "test"); } #[test] fn object_id_unique() { let o1 = Object::new("a"); let o2 = Object::new("b"); assert_ne!(o1.id(), o2.id()); } }