aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2026-02-20 00:01:48 -0500
committerBruce Hill <bruce@bruce-hill.com>2026-02-20 00:01:48 -0500
commit73a2493d15b146f0dda6dc8db3de463422464118 (patch)
tree7999612673c959558bd7789d26aefaa6d58d9a70
parent9073d89b87fcdcbbb1fa6f69c18b7a866cc4cbbc (diff)
Fix and remove tests
-rw-r--r--src/compile/text.c1
-rw-r--r--test/paths.tm6
2 files changed, 1 insertions, 6 deletions
diff --git a/src/compile/text.c b/src/compile/text.c
index 2a64ca45..5ea89895 100644
--- a/src/compile/text.c
+++ b/src/compile/text.c
@@ -20,6 +20,7 @@ Text_t expr_as_text(Text_t expr, type_t *t, Text_t color) {
// fields:
return Texts("Bool$as_text((Bool_t[1]){", expr, "}, ", color, ", &Bool$info)");
case CStringType: return Texts("CString$as_text(stack(", expr, "), ", color, ", &CString$info)");
+ case PathType: return Texts("Path$as_text(stack(", expr, "), ", color, ", &Path$info)");
case BigIntType:
case IntType:
case ByteType:
diff --git a/test/paths.tm b/test/paths.tm
index 6622847e..c9efa874 100644
--- a/test/paths.tm
+++ b/test/paths.tm
@@ -102,9 +102,3 @@ func main()
say("Globbing:")
>> (./*.tm).glob()
-
- assert (./foo).RelativePath
- assert (/foo).AbsolutePath
- assert (~/foo).HomePath
- assert (/foo/baz).components() == ["foo", "baz"]
- assert Path.RelativePath(["foo", "baz"]) == (./foo/baz)