From 3cbacbd675d373edc83dd8f20be7cb7efbb3a506 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 16 Sep 2024 14:04:51 -0400 Subject: Add some basic pattern matching/suffix code for paths --- test/paths.tm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/paths.tm') 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: -- cgit v1.2.3