aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/function
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/function')
-rw-r--r--unit-tests/function/call.test42
-rw-r--r--unit-tests/function/syntax.test6
2 files changed, 24 insertions, 24 deletions
diff --git a/unit-tests/function/call.test b/unit-tests/function/call.test
index 396090a..d16b91c 100644
--- a/unit-tests/function/call.test
+++ b/unit-tests/function/call.test
@@ -13,8 +13,8 @@ $* <'print $dummy.qual()' >'abc'
: qual-fail
:
$* <'print $qual()' 2>>EOE != 0
-buildfile:1:8: error: unmatched call to qual\()
- info: candidate: dummy.qual\()
+buildfile:1:8: error: unmatched call to qual()
+ info: candidate: dummy.qual()
EOE
: derived-base
@@ -32,42 +32,42 @@ $* <'print $variadic([bool] true)' >'1'
:
$* <'$fail()' 2>>EOE != 0
error: failed
-buildfile:1:2: info: while calling fail\()
+buildfile:1:2: info: while calling fail()
EOE
: fail-invalid-arg
:
$* <'$fail_arg(abc)' 2>>EOE != 0
error: invalid argument: invalid uint64 value: 'abc'
-buildfile:1:2: info: while calling fail_arg\(<untyped>)
+buildfile:1:2: info: while calling fail_arg(<untyped>)
EOE
: no-match-name
:
$* <'$bogus()' 2>>EOE != 0
-buildfile:1:2: error: unmatched call to bogus\()
+buildfile:1:2: error: unmatched call to bogus()
EOE
: no-match-count
:
$* <'$dummy0(abc)' 2>>EOE != 0
-buildfile:1:2: error: unmatched call to dummy0\(<untyped>)
- info: candidate: dummy0\(), qualified name dummy.dummy0
+buildfile:1:2: error: unmatched call to dummy0(<untyped>)
+ info: candidate: dummy0(), qualified name dummy.dummy0
EOE
: no-match-type
:
$* <'$dummy1([uint64] 123)' 2>>EOE != 0
-buildfile:1:2: error: unmatched call to dummy1\(uint64)
- info: candidate: dummy1\(string), qualified name dummy.dummy1
+buildfile:1:2: error: unmatched call to dummy1(uint64)
+ info: candidate: dummy1(string), qualified name dummy.dummy1
EOE
: ambig
:
$* <'$ambig(abc)' 2>- != 0 # @@ REGEX
-#buildfile:1:2: error: ambiguous call to ambig\(<untyped>)
-# info: candidate: ambig\(<untyped> [, uint64]), qualified name dummy.ambig
-# info: candidate: ambig\(<untyped> [, string]), qualified name dummy.ambig
+#buildfile:1:2: error: ambiguous call to ambig(<untyped>)
+# info: candidate: ambig(<untyped> [, uint64]), qualified name dummy.ambig
+# info: candidate: ambig(<untyped> [, string]), qualified name dummy.ambig
#EOE
: optional-absent
@@ -90,19 +90,19 @@ $* <'print $nullable(nonull)' >'false'
:
$* <'$dummy1([string null])' 2>>EOE != 0
error: invalid argument: null value
-buildfile:1:2: info: while calling dummy1\(string)
+buildfile:1:2: info: while calling dummy1(string)
EOE
: print-call-1-untyped
:
$* <'$bogus(abc)' 2>>EOE != 0
-buildfile:1:2: error: unmatched call to bogus\(<untyped>)
+buildfile:1:2: error: unmatched call to bogus(<untyped>)
EOE
: print-call-1-typed
:
$* <'$bogus([uint64] 123)' 2>>EOE != 0
-buildfile:1:2: error: unmatched call to bogus\(uint64)
+buildfile:1:2: error: unmatched call to bogus(uint64)
EOE
#\
@@ -110,23 +110,23 @@ EOE
: print-call-2
:
$* <'$bogus(abc, [uint64] 123)' 2>>EOE != 0
-buildfile:1:2: error: unmatched call to bogus\(<untyped>, uint64)
+buildfile:1:2: error: unmatched call to bogus(<untyped>, uint64)
EOE
#\
: print-fovl
:
$* <'$ambig([bool] true)' 2>- != 0 # @@ REGEX
-#buildfile:1:2: error: unmatched call to ambig\(bool)
-# info: candidate: ambig\(<untyped> [, uint64]), qualified name dummy.ambig
-# info: candidate: ambig\(<untyped> [, string]), qualified name dummy.ambig
+#buildfile:1:2: error: unmatched call to ambig(bool)
+# info: candidate: ambig(<untyped> [, uint64]), qualified name dummy.ambig
+# info: candidate: ambig(<untyped> [, string]), qualified name dummy.ambig
#EOE
: print-fovl-variadic
:
$* <'$variadic(abc)' 2>>EOE != 0
-buildfile:1:2: error: unmatched call to variadic\(<untyped>)
- info: candidate: variadic\(bool [, ...])
+buildfile:1:2: error: unmatched call to variadic(<untyped>)
+ info: candidate: variadic(bool [, ...])
EOE
: member-function
diff --git a/unit-tests/function/syntax.test b/unit-tests/function/syntax.test
index 9e653c8..d644fd1 100644
--- a/unit-tests/function/syntax.test
+++ b/unit-tests/function/syntax.test
@@ -19,9 +19,9 @@ $* <<EOI >>EOO
foo = FOO
bar = BAR
-print \$foo"\(\$bar)"
-print "\$foo"\(\$bar)
-print "\$foo""\(\$bar)"
+print $foo"($bar)"
+print "$foo"($bar)
+print "$foo""($bar)"
EOI
FOOBAR
FOOBAR