More tests

This commit is contained in:
Bruce Hill 2024-09-09 03:52:56 -04:00
parent 3081da3dd0
commit 4f2de3568f

View File

@ -24,3 +24,16 @@ func main():
>> tmpdir:remove()
>> p := (/foo/baz.x/qux.tar.gz)
>> p:base_name()
= "qux.tar.gz"
>> p:parent()
= (/foo/baz.x)
>> p:extension()
= "tar.gz"
>> p:extension(full=no)
= "gz"
>> (~/.foo):extension()
= ""
>> (~/foo):extension()
= ""