1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
pub struct Facet {
    pub name: String,
}

#[cfg(test)]
mod tests {
    use crate::Facet;

    #[test]
    fn should_create_facet() {
        let facet = Facet {
            name: "spring framework".to_string(),
        };

        assert_eq!(facet.name, "spring framework");
    }
}