Skip to content

Commit

Permalink
Fix wasi_path test non-windows (#769)
Browse files Browse the repository at this point in the history
* Fix wasi_path test non-windows

* cargo fmt
  • Loading branch information
AlexKnauth committed Apr 25, 2024
1 parent c2d76b4 commit 2f6ade5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/livesplit-auto-splitting/src/wasi_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ mod tests {
#[cfg(not(windows))]
#[test]
fn test_wasi_to_non_windows() {
assert_eq!(to_native(r"/mnt/foo/bar.exe"), Some(r"/foo/bar.exe".into()));
assert_eq!(
to_native(r"/mnt/foo/bar.exe", false),
Some(r"/foo/bar.exe".into())
);
}
}

0 comments on commit 2f6ade5

Please sign in to comment.