Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Jun 1, 2023
1 parent 29a1fb1 commit 60b0d8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,11 @@ fn test_json_error() {

#[test]
fn test_io_error() {
let args = ["%(devnull@/usr/bin/env)q"].map(Into::into);
let args = ["%(devnull@foobar)q"].map(Into::into);

assert_eq!(
jf::format(args).unwrap_err().to_string(),
"io: stream did not contain valid UTF-8",
"io: No such file or directory (os error 2)"
)
}

Expand Down

0 comments on commit 60b0d8f

Please sign in to comment.