unit_testing_learn/
lib.rs

1pub mod Shapes{
2
3    pub struct Circle{
4       pub radius:f32
5    }
6
7    impl Circle{
8
9
10        pub fn new(radius:f32)->Self{
11            
12            Self{radius}
13        }
14
15
16        pub fn contains(&self,another:&Circle)->bool{
17            self.radius<another.radius
18        }
19
20    }
21}
22
23
24/* 
25#[cfg(test)]
26mod Tests{
27    use super::Shapes::Circle;
28    #[test]
29    fn larger_contain_smaller(){
30        let small :Circle=Circle::new(5.0);
31        let large:Circle=Circle::new(8.0);
32        assert_eq!(large.contains(&small),false);
33    }
34
35}
36*/