mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 23:27:45 +00:00

Deprecates the existing `stdlib-candidate` directories in `nu_scripts` since `std-rfc` has now transitioned to the main repo. Updates readme and renamed directories.
12 lines
308 B
Text
12 lines
308 B
Text
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
|
|
}
|