fix tests

This commit is contained in:
Dylan Hurd
2025-12-08 11:19:43 -08:00
parent 6e61471b16
commit 0d46f27a3e
@@ -309,8 +309,9 @@ mod tests {
let command = get_command(&args);
assert_eq!(command.len(), 3);
assert_eq!(command[2], "echo hello");
let expected_command_len = if cfg!(windows) { 4 } else { 3 };
assert_eq!(command.len(), expected_command_len);
assert_eq!(command.last().unwrap(), "echo hello");
}
#[test]
@@ -338,7 +339,7 @@ mod tests {
let command = get_command(&args);
assert_eq!(command[2], "echo hello");
assert_eq!(command.last().unwrap(), "echo hello");
}
#[test]