diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-05-21 00:23:49 +0200 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2018-05-21 00:23:49 +0200 |
commit | 5bb863c891a2db7bc7eb0b139dc44e84b72c0d6e (patch) | |
tree | 3f5d2a7ca55bb1b0b71e9c870c875caa78539fd8 /run_unittests.py | |
parent | 10e7566ed84251dcec6ee4ff3cc721e38fb90457 (diff) | |
download | meson-5bb863c891a2db7bc7eb0b139dc44e84b72c0d6e.zip meson-5bb863c891a2db7bc7eb0b139dc44e84b72c0d6e.tar.gz meson-5bb863c891a2db7bc7eb0b139dc44e84b72c0d6e.tar.bz2 |
dict: unit test integer key
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index f93415b..b581e12 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2338,6 +2338,10 @@ class FailureTests(BasePlatformTests): self.assertMesonRaises("dict = {'a': 41, 'a': 42}", 'Duplicate dictionary key: a.*') + def test_dict_forbids_integer_key(self): + self.assertMesonRaises("dict = {3: 'foo'}", + 'Key must be a string.*') + class WindowsTests(BasePlatformTests): ''' |