From af5fa9e744acf6da12f2eab7f44810195c0d3ecd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 May 2021 16:51:24 +0200 Subject: Ban conversion of patterns to values Also improve conversion diagnostic. --- tests/directive/assert.testscript | 2 +- tests/directive/config.testscript | 3 +++ tests/expansion/subscript.testscript | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') 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 -:1:8: error: invalid bool value: 'junk' +: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 } diff --git a/tests/expansion/subscript.testscript b/tests/expansion/subscript.testscript index 0c06394..38728d4 100644 --- a/tests/expansion/subscript.testscript +++ b/tests/expansion/subscript.testscript @@ -85,7 +85,7 @@ EOE : invalid-subscript : $* <'print ($x[1a])' 2>>EOE != 0 -:1:11: error: invalid value subscript: invalid uint64 value: '1a' +:1:11: error: invalid value subscript: invalid uint64 value '1a' :1:9: info: use the '\[' escape sequence if this is a wildcard pattern EOE -- cgit v1.1