We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d65753 commit 0b9220cCopy full SHA for 0b9220c
src/exercise.rs
@@ -232,6 +232,16 @@ path = "{}.rs""#,
232
233
State::Pending(context)
234
}
235
+
236
+ // Check that the exercise looks to be solved using self.state()
237
+ // This is not the best way to check since
238
+ // the user can just remove the "I AM NOT DONE" string fromm the file
239
+ // without actually having solved anything.
240
+ // The only other way to truly check this would to compile and run
241
+ // the exercise; which would be both costly and counterintuitive
242
+ pub fn looks_done(&self) -> bool {
243
+ self.state() == State::Done
244
+ }
245
246
247
impl Display for Exercise {
0 commit comments