diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2022-03-28 19:33:52 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-03-29 02:12:02 +0300 |
commit | 1c3191be55f0445d66ffc6cc7b94ba9837f00784 (patch) | |
tree | 9e0ac18411b3cefd9b02459d725b438044efaae8 /test cases/failing/93 add dict non string key | |
parent | 479a84455f6b838e862b7b68b6edd8968dd8fe1c (diff) | |
download | meson-1c3191be55f0445d66ffc6cc7b94ba9837f00784.zip meson-1c3191be55f0445d66ffc6cc7b94ba9837f00784.tar.gz meson-1c3191be55f0445d66ffc6cc7b94ba9837f00784.tar.bz2 |
Condense test directory names.
Diffstat (limited to 'test cases/failing/93 add dict non string key')
-rw-r--r-- | test cases/failing/93 add dict non string key/meson.build | 9 | ||||
-rw-r--r-- | test cases/failing/93 add dict non string key/test.json | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test cases/failing/93 add dict non string key/meson.build b/test cases/failing/93 add dict non string key/meson.build new file mode 100644 index 0000000..c81a3f7 --- /dev/null +++ b/test cases/failing/93 add dict non string key/meson.build @@ -0,0 +1,9 @@ +project('add dictionary entry using non-string key') + +dict = {} + +# An integer variable to be used as a key +key = 1 + +# Add new entry using integer variable as key should fail +dict += {key : 'myValue'}
\ No newline at end of file diff --git a/test cases/failing/93 add dict non string key/test.json b/test cases/failing/93 add dict non string key/test.json new file mode 100644 index 0000000..3ef2dde --- /dev/null +++ b/test cases/failing/93 add dict non string key/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/93 add dict non string key/meson.build:9:0: ERROR: Key must be a string" + } + ] +} |