Skip to content

Commit

Permalink
Check file not found output with other OSes in mind
Browse files Browse the repository at this point in the history
  • Loading branch information
riquito committed Nov 23, 2023
1 parent 17058d9 commit cb9930b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ mod tests {

// There are many reasons why we could get an IoError, not just "file not found".
// Here we test that we actually get informations about the underlying io error.
assert_eq!(
"Cannot read theme file. No such file or directory (os error 2)".to_string(),
the_error.to_string()
);
assert!(the_error.to_string().starts_with("Cannot read theme file"));
assert!(the_error.to_string().ends_with("(os error 2)"));
}

#[test]
Expand Down

0 comments on commit cb9930b

Please sign in to comment.