mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
fix tests
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user