Skip to content

Commit

Permalink
Merge branch 'main' of github-max:max-niederman/ttyper
Browse files Browse the repository at this point in the history
  • Loading branch information
max-niederman committed Dec 19, 2021
2 parents 02a591f + 79e32b1 commit 408f96d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ impl Test {
correct: Some(word.text.starts_with(&word.progress[..])),
key,
});
if word.progress == word.text && self.current_word == self.words.len() - 1 {
self.complete = true;
self.current_word = 0;
}
}
_ => {}
};
Expand Down

0 comments on commit 408f96d

Please sign in to comment.