diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-09 03:52:56 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-09 03:52:56 -0400 |
| commit | 4f2de3568f903cabecb52ba8b3a5e07de925d1ce (patch) | |
| tree | d79152203ada749e261bf061ef2de9450a07ee44 /test/paths.tm | |
| parent | 3081da3dd06a5ddcf7addf794cdeb21a04486e6d (diff) | |
More tests
Diffstat (limited to 'test/paths.tm')
| -rw-r--r-- | test/paths.tm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/paths.tm b/test/paths.tm index bc85c31a..016c91cc 100644 --- a/test/paths.tm +++ b/test/paths.tm @@ -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() + = "" |
