Always show Rust test timings
Matches the Haskell now that we're no longer using Sydtest.
This commit is contained in:
parent
2462a30b1d
commit
b7cda0a0ec
@ -9,7 +9,7 @@ use puzzles::day5;
|
|||||||
use puzzles::day6;
|
use puzzles::day6;
|
||||||
use puzzles::day7;
|
use puzzles::day7;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::Instant;
|
||||||
|
|
||||||
const PUZZLES: [&dyn SomePuzzle; 7] = [
|
const PUZZLES: [&dyn SomePuzzle; 7] = [
|
||||||
&day1::PUZZLE,
|
&day1::PUZZLE,
|
||||||
@ -42,9 +42,7 @@ fn main() {
|
|||||||
n,
|
n,
|
||||||
if expected == output {
|
if expected == output {
|
||||||
let mut s = String::from("OK");
|
let mut s = String::from("OK");
|
||||||
if elapsed > Duration::from_millis(10) {
|
s.push_str(&format!(" ({:?})", elapsed));
|
||||||
s.push_str(&format!(" ({:?})", elapsed));
|
|
||||||
}
|
|
||||||
s
|
s
|
||||||
} else {
|
} else {
|
||||||
format!("expected {}, got {}", expected, output)
|
format!("expected {}, got {}", expected, output)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user