mirror of
https://github.com/Cian-H/dotfiles.git
synced 2025-12-28 21:41:56 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
13 lines
308 B
Nu
13 lines
308 B
Nu
use std assert
|
|
use ../std-rfc bench
|
|
|
|
export def "test bench-timings" [] {
|
|
let $test = bench {1 + 2} --rounds 3 --timings | get times | length
|
|
assert equal $test 3
|
|
}
|
|
|
|
export def "test bench-pretty" [] {
|
|
let $test = (bench {1 + 2} --rounds 3 --pretty) =~ '\d.* ± \d'
|
|
assert equal $test true
|
|
}
|