diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-12-06 15:12:40 -0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-01-18 17:53:29 -0500 |
commit | 574525673f6b00535f916d7230ef7e4a3d58bc2c (patch) | |
tree | 82b69366157436a31bb32816da9d25a988d75b86 /test cases | |
parent | 7641bfd0cee6daf320b98f7d1bf37e5b0c109a10 (diff) | |
download | meson-574525673f6b00535f916d7230ef7e4a3d58bc2c.zip meson-574525673f6b00535f916d7230ef7e4a3d58bc2c.tar.gz meson-574525673f6b00535f916d7230ef7e4a3d58bc2c.tar.bz2 |
interpreterobjects: use typed_* for configuration_data.set*
This removes the ability to use ConfigurationData as a dict, but
restricting the inputs to `str | int | bool`. This may be a little too
soon for this, and we may want to wait on that part, it's only bee 8
months since we started warning about this.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/14 configure file/meson.build | 3 | ||||
-rw-r--r-- | test cases/common/187 args flattening/meson.build | 8 |
2 files changed, 1 insertions, 10 deletions
diff --git a/test cases/common/14 configure file/meson.build b/test cases/common/14 configure file/meson.build index 416dad7..91a56ff 100644 --- a/test cases/common/14 configure file/meson.build +++ b/test cases/common/14 configure file/meson.build @@ -275,9 +275,6 @@ configure_file( test('configure-file', test_file) -cdata = configuration_data() -cdata.set('invalid_value', ['array']) - # Dictionaries cdata = configuration_data({ diff --git a/test cases/common/187 args flattening/meson.build b/test cases/common/187 args flattening/meson.build index 1dac2f9..61d77e4 100644 --- a/test cases/common/187 args flattening/meson.build +++ b/test cases/common/187 args flattening/meson.build @@ -6,13 +6,6 @@ assert(arr == ['bar', 'baz'], 'get_variable with array fallback is broken') set_variable('arr', ['bar', 'baz']) assert(arr == ['bar', 'baz'], 'set_variable(array) is broken') -conf = configuration_data() -conf.set('foo', ['bar', 'baz']) -assert(conf.get('foo') == ['bar', 'baz'], 'configuration_data.set(array) is broken') - -arr = conf.get('does-not-exist', ['bar', 'baz']) -assert(arr == ['bar', 'baz'], 'configuration_data.get with array fallback is broken') - arr = meson.get_cross_property('does-not-exist', ['bar', 'baz']) assert(arr == ['bar', 'baz'], 'meson.get_cross_property with array fallback is broken') @@ -27,5 +20,6 @@ assert(arr == ['bar', 'baz'], 'meson.get_external_property native:false with arr # Test deprecated behaviour +conf = configuration_data() conf.set(['foo', 'bar']) message(conf.get('foo')) |