(big: i32, medium: i32, small: i32)
| 5 | |
| 6 | impl ParkingSystem { |
| 7 | fn new(big: i32, medium: i32, small: i32) -> Self { |
| 8 | ParkingSystem { |
| 9 | max: vec!(big, medium, small), |
| 10 | current: vec![0; 3] |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | fn add_car(&mut self, car_type: i32) -> bool { |
| 15 | let car_type = car_type as usize - 1; |
nothing calls this directly
no outgoing calls
no test coverage detected