Skip to content

Commit

Permalink
Add a simple expect invocation to the test suite
Browse files Browse the repository at this point in the history
I'm modifying this to check that `UPDATE_EXPECT` works manually.
  • Loading branch information
ecstatic-morse committed Jan 5, 2022
1 parent f09be07 commit d7c381e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,11 @@ fn format_chunks(chunks: Vec<dissimilar::Chunk>) -> String {
mod tests {
use super::*;

#[test]
fn test_trivial_assert() {
expect!["5"].assert_eq("5");
}

#[test]
fn test_format_patch() {
let patch = format_patch(None, "hello\nworld\n");
Expand Down

0 comments on commit d7c381e

Please sign in to comment.