diff options
| -rw-r--r-- | src/compile/text.c | 1 | ||||
| -rw-r--r-- | test/paths.tm | 6 |
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) |
