| skipped 137 lines |
138 | 138 | | #[cfg(test)] |
139 | 139 | | mod tests { |
140 | 140 | | use super::*; |
| 141 | + | use path_absolutize::Absolutize; |
141 | 142 | | |
142 | 143 | | macro_rules! vec_of_strings { |
143 | 144 | | // match a list of expressions separated by comma: |
| skipped 15 lines |
159 | 160 | | fn test_parse_own_flags() { |
160 | 161 | | let args = parse_args(&vec_of_strings!["-c", ".", "a"]); |
161 | 162 | | assert_eq!(args.script_name, "a".to_string()); |
162 | | - | assert_eq!(args.change_dir, PathBuf::from(".")); |
| 163 | + | assert_eq!(args.change_dir, Path::new(".").absolutize().unwrap()); |
163 | 164 | | assert_eq!(args.forwarded, "".to_string()); |
164 | 165 | | } |
165 | 166 | | } |
| skipped 1 lines |