1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use crate::{
    registry::Registry,
    World,
};

impl<R> Default for World<R>
where
    R: Registry,
{
    fn default() -> Self {
        Self::new()
    }
}

#[cfg(test)]
mod tests {
    use super::*;
    use crate::registry;

    type Registry = registry!();

    #[test]
    fn default() {
        assert_eq!(World::<Registry>::default(), World::<Registry>::new());
    }
}