aboutsummaryrefslogtreecommitdiff
path: root/tests/function
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-14 18:30:28 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-16 16:49:58 +0300
commit55e858010b9ba53c27475d9ce6f864a84d28fa81 (patch)
treeddbbcc909abc23310117afee2225f6197f475f18 /tests/function
parent3f2b42c3c01ecfee6a63653172d437aa0e915b68 (diff)
Resolve function overload via the argument reversal to untyped
Diffstat (limited to 'tests/function')
-rw-r--r--tests/function/builtin/testscript11
-rw-r--r--tests/function/filesystem/testscript5
2 files changed, 2 insertions, 14 deletions
diff --git a/tests/function/builtin/testscript b/tests/function/builtin/testscript
index 6108455..d15eeb3 100644
--- a/tests/function/builtin/testscript
+++ b/tests/function/builtin/testscript
@@ -86,16 +86,7 @@
: path
:
- $* <'print $getenv([path] a)' 2>>~/EOE/ != 0
- <stdin>:1:8: error: unmatched call to getenv(path)
- /((
- info: candidate: getenv(<untyped>), qualified name builtin.getenv
- info: candidate: getenv(string), qualified name builtin.getenv
- /)|(
- info: candidate: getenv(string), qualified name builtin.getenv
- info: candidate: getenv(<untyped>), qualified name builtin.getenv
- /))
- EOE
+ $* <'print $getenv([path] a)' >'[null]'
: none
:
diff --git a/tests/function/filesystem/testscript b/tests/function/filesystem/testscript
index 61fca19..7dcfde9 100644
--- a/tests/function/filesystem/testscript
+++ b/tests/function/filesystem/testscript
@@ -95,10 +95,7 @@
: string-path
:
- $* <'print $path_match([string] "b*", [path] "b")' 2>>~/EOE/ != 0
- <stdin>:1:8: error: unmatched call to path_match(string, path)
- /.{11}
- EOE
+ $* <'print $path_match([string] "b*", [path] "b")' >'true'
}
: path