aboutsummaryrefslogtreecommitdiff
path: root/tests/directive
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-05-24 16:51:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-05-28 10:10:44 +0200
commitaf5fa9e744acf6da12f2eab7f44810195c0d3ecd (patch)
tree3685dda19882b79a20235286f2c8593797d55de6 /tests/directive
parent9c3e14bb61d6fb1da6ada3213e2c4d566ddd5e33 (diff)
Ban conversion of patterns to values
Also improve conversion diagnostic.
Diffstat (limited to 'tests/directive')
-rw-r--r--tests/directive/assert.testscript2
-rw-r--r--tests/directive/config.testscript3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/directive/assert.testscript b/tests/directive/assert.testscript
index 2543536..d869863 100644
--- a/tests/directive/assert.testscript
+++ b/tests/directive/assert.testscript
@@ -23,7 +23,7 @@ EOE
: invalid
:
$* <'assert junk' 2>>EOE != 0
-<stdin>:1:8: error: invalid bool value: 'junk'
+<stdin>:1:8: error: invalid bool value 'junk'
EOE
: null
diff --git a/tests/directive/config.testscript b/tests/directive/config.testscript
index e84ca0a..4049fa0 100644
--- a/tests/directive/config.testscript
+++ b/tests/directive/config.testscript
@@ -56,6 +56,7 @@ test.arguments =
$* noop config.test.fancy=junk 2>>EOE != 0
error: invalid bool value 'junk' in variable config.test.fancy
+ info: while converting 'junk'
EOE
}
@@ -109,6 +110,7 @@ test.arguments =
$* noop config.test.fancy=junk 2>>EOE != 0
error: invalid bool value 'junk' in variable config.test.fancy
+ info: while converting 'junk'
EOE
}
@@ -160,6 +162,7 @@ test.arguments =
$* noop config.test.fancy=junk 2>>EOE != 0
error: invalid bool value 'junk' in variable config.test.fancy
+ info: while converting 'junk'
EOE
}