mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Preserve backticks in Markdown command names
This commit is contained in:
1 parent
a6c301099b
commit
a760e75f2f
2 files changed
+41
-1
No files matched your search
@@ -929,6 +929,18 @@ fn invalid_command_options_preserve_export_files() {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn markdown_export_preserves_backticks_and_pipes_in_command_names() {
|
||||
hyperfine_debug()
|
||||
.arg("--style=none")
|
||||
.arg("--export-markdown=-")
|
||||
.arg("--command-name=echo `uname` | cat")
|
||||
.arg("sleep 1")
|
||||
.assert()
|
||||
.success()
|
||||
.stdout(predicate::str::contains("| `` echo `uname` \\| cat `` |"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unused_parameters_are_shown_in_benchmark_name() {
|
||||
hyperfine()
|
||||
|
||||
Reference in new issue
Block a user