Files
hermenix/nu/tests/setup_test.nu
T
2026-09-17 14:14:14 -04:00

25 lines
540 B
Nu

use std/assert
use std/testing *
source ../lib/common.nu
source ../host/setup.nu
@test
def "normalize-size adds G to a bare number" [] {
assert equal (normalize-size "80") "80G"
}
@test
def "normalize-size leaves an existing suffix alone" [] {
assert equal (normalize-size "80G") "80G"
}
@test
def "normalize-size passes non-numeric input through unchanged" [] {
assert equal (normalize-size "lots") "lots"
}
@test
def "normalize-size passes an empty string through unchanged" [] {
assert equal (normalize-size "") ""
}