mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
fmt
This commit is contained in:
parent
6acd2f338b
commit
5f865a4a0c
6 changed files with 32 additions and 42 deletions
|
@ -42,12 +42,10 @@ fn check_cmd_output(
|
|||
.unwrap()
|
||||
.to_string();
|
||||
|
||||
let out= if cmd_str.contains("cfold") {
|
||||
let out = if cmd_str.contains("cfold") {
|
||||
let child = thread::Builder::new()
|
||||
.stack_size(CFOLD_STACK_SIZE)
|
||||
.spawn(
|
||||
move|| {run_cmd(&cmd_str, &[stdin_str], &[])}
|
||||
)
|
||||
.spawn(move || run_cmd(&cmd_str, &[stdin_str], &[]))
|
||||
.unwrap();
|
||||
|
||||
child.join().unwrap()
|
||||
|
@ -55,7 +53,6 @@ fn check_cmd_output(
|
|||
run_cmd(&cmd_str, &[stdin_str], &[])
|
||||
};
|
||||
|
||||
|
||||
if !&out.stdout.ends_with(expected_ending) {
|
||||
panic!(
|
||||
"expected output to end with {:?} but instead got {:#?}",
|
||||
|
@ -103,7 +100,6 @@ fn bench_cmd<T: Measurement>(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn bench_nqueens<T: Measurement>(bench_group_opt: Option<&mut BenchmarkGroup<T>>) {
|
||||
exec_bench_w_input(
|
||||
&example_file("benchmarks", "NQueens.roc"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue