aboutsummaryrefslogtreecommitdiff
path: root/test/paths.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-16 14:04:51 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-16 14:04:51 -0400
commit3cbacbd675d373edc83dd8f20be7cb7efbb3a506 (patch)
treea504695848f4383a24f1802fd4237c9260752cac /test/paths.tm
parentc5396d65a8f766266b81b58acb7b1a457e7491a2 (diff)
Add some basic pattern matching/suffix code for paths
Diffstat (limited to 'test/paths.tm')
-rw-r--r--test/paths.tm6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/paths.tm b/test/paths.tm
index 946526bb..4ef0b028 100644
--- a/test/paths.tm
+++ b/test/paths.tm
@@ -81,6 +81,12 @@ func main():
>> (../foo):parent()
= (../)
+ >> (./foo.txt):ends_with(".txt")
+ = yes
+ >> (./foo.txt):matches($|{..}/foo{..}|)
+ = yes
+ >> (./foo.txt):replace($/.txt/, ".md")
+ = (./foo.md)
# Concatenation tests:
!! Basic relative path concatenation: