mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-29 00:28:57 +00:00
21 lines
352 B
Rust
21 lines
352 B
Rust
mod common;
|
|
use common::hyperfine;
|
|
|
|
#[test]
|
|
fn hyperfine_runs_successfully() {
|
|
hyperfine()
|
|
.arg("--runs=2")
|
|
.arg("echo dummy benchmark")
|
|
.assert()
|
|
.success();
|
|
}
|
|
|
|
#[test]
|
|
fn one_run_is_supported() {
|
|
hyperfine()
|
|
.arg("--runs=1")
|
|
.arg("echo dummy benchmark")
|
|
.assert()
|
|
.success();
|
|
}
|