use super::Registration;
#[test]
fn the_author_facing_shape_is_writable_with_const_defaults() {
const CARD: Registration = Registration {
needs_registry: true,
registry_name: "card",
..Registration::DEFAULT
};
assert_eq!(CARD.registry_name, "card", "the literal's field survives");
assert_eq!(
Registration::DEFAULT.registry_name,
"",
"and the spread fills the rest with the empty value"
);
assert_eq!(
Registration::DEFAULT.parent,
crate::registry_core::identity::NodeId::from_raw([0; 16]),
"including the parent, whose default is the unset identity"
);
assert_ne!(
CARD.needs_registry,
Registration::DEFAULT.needs_registry,
"the default owns no registry"
);
}