Check that the exercise looks to be solved using self.state() This is not the best way to check since the user can just remove the "I AM NOT DONE" string from the file without actually having solved anything. The only other way to truly check this would to compile and run the exercise; which would be both costly and counterintuitive
(&self)
| 244 | // The only other way to truly check this would to compile and run |
| 245 | // the exercise; which would be both costly and counterintuitive |
| 246 | pub fn looks_done(&self) -> bool { |
| 247 | self.state() == State::Done |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | impl Display for Exercise { |
no test coverage detected