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 4, 2022
1 parent ce5e69d commit 883233a
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 @@ -722,6 +722,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 883233a

Please sign in to comment.