Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
  • Loading branch information
zhiburt committed Mar 29, 2023
1 parent 00fc0d2 commit 1586f9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/check.rs
Expand Up @@ -94,12 +94,13 @@ fn check_eof() {

let m = session.check(Eof).unwrap();
assert_eq!(m.before(), b"");

if m.matches().len() > 0 {
let buf = m.get(0).unwrap();
#[cfg(target_os = "macos")]
assert_eq!(m.get(0).unwrap(), b"");
assert!(matches!(buf), b"" | b"'Hello World'\r\n", "{:?}", buf);
#[cfg(not(target_os = "macos"))]
assert_eq!(m.get(0).unwrap(), b"'Hello World'\r\n");
assert_eq!(buf, b"'Hello World'\r\n");
}
}

Expand Down

0 comments on commit 1586f9c

Please sign in to comment.