Skip to content

Commit

Permalink
test: use assert_eq rather than starts_with
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Jun 30, 2024
1 parent fc27cd6 commit c7e4149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ fn bash_echo() {
let screen = run(cli).unwrap();
let content: String = screen.cells().map(|c| c.c).collect();

assert!(content.starts_with("hello, world"));
assert_eq!(&content[..12], "hello, world");
}

0 comments on commit c7e4149

Please sign in to comment.