mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
Use get_program
This commit is contained in:
1 parent
24be84e025
commit
85f9aaafa2
1 file changed
+1
-4
+1
-4
@@ -300,10 +300,7 @@ fn test_shell_default_command() {
|
|||||||
assert_eq!(&s, DEFAULT_SHELL);
|
assert_eq!(&s, DEFAULT_SHELL);
|
||||||
|
|
||||||
let cmd = shell.command();
|
let cmd = shell.command();
|
||||||
// Command::get_program is not yet available in stable channel.
|
assert_eq!(cmd.get_program(), DEFAULT_SHELL);
|
||||||
// https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
|
|
||||||
let s = format!("{:?}", cmd);
|
|
||||||
assert_eq!(s, format!("\"{}\"", DEFAULT_SHELL));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in new issue
Block a user