Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Dec 7, 2021
1 parent 0c16bd0 commit 15736d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ FLAGS:
#[cfg(test)]
mod tests {
use super::*;
use path_absolutize::Absolutize;

macro_rules! vec_of_strings {
// match a list of expressions separated by comma:
Expand All @@ -159,7 +160,7 @@ mod tests {
fn test_parse_own_flags() {
let args = parse_args(&vec_of_strings!["-c", ".", "a"]);
assert_eq!(args.script_name, "a".to_string());
assert_eq!(args.change_dir, PathBuf::from("."));
assert_eq!(args.change_dir, Path::new(".").absolutize().unwrap());
assert_eq!(args.forwarded, "".to_string());
}
}

0 comments on commit 15736d5

Please sign in to comment.