mirror of
https://github.com/janet-lang/janet
synced 2025-01-12 08:30:26 +00:00
parent
0ca0180f27
commit
e0fe8476aa
@ -218,6 +218,10 @@ static Janet janet_core_expand_path(int32_t argc, Janet *argv) {
|
||||
}
|
||||
dot_count = 0;
|
||||
} else {
|
||||
while (dot_count > 0) {
|
||||
--dot_count;
|
||||
*print++ = '.';
|
||||
}
|
||||
dot_count = -1;
|
||||
*print++ = *scan;
|
||||
}
|
||||
|
@ -130,4 +130,9 @@
|
||||
|
||||
(assert (not (string/find "\r" (get ((fiber/getenv (fiber/current)) 'cond) :doc))) "no \\r in doc strings")
|
||||
|
||||
# module/expand-path regression
|
||||
(with-dyns [:syspath ".janet/.janet"]
|
||||
(assert (= (string (module/expand-path "hello" ":sys:/:all:.janet"))
|
||||
".janet/.janet/hello.janet") "module/expand-path 1"))
|
||||
|
||||
(end-suite)
|
||||
|
Loading…
Reference in New Issue
Block a user