diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-15 14:00:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 14:00:41 +0200 |
commit | 32f8f74d8345049e41d1abb7239fcee40ecb2c53 (patch) | |
tree | 55ddc531d295c63b76fb953ed83a4fd9b43434e5 /modules/gdscript/tests/scripts/parser/features/nested_dictionary.gd | |
parent | d169087b67995b58a6a6b1394b41bc46e640bd77 (diff) | |
parent | c0083c0f90238f0eec01604dd9c952c8c5dc3c22 (diff) |
Merge pull request #48029 from Calinou/gdscript-add-integration-tests
Add dozens of new integration tests to the GDScript test suite
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/nested_dictionary.gd')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/nested_dictionary.gd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/nested_dictionary.gd b/modules/gdscript/tests/scripts/parser/features/nested_dictionary.gd new file mode 100644 index 0000000000..d67e142156 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/nested_dictionary.gd @@ -0,0 +1,6 @@ +func test(): + var dictionary = {1: {2: {3: {4: {5: {6: {7: {8: {"key": "value"}}}}}}}}} + print(dictionary[1][2][3][4][5][6][7]) + print(dictionary[1][2][3][4][5][6][7][8]) + print(dictionary[1][2][3][4][5][6][7][8].key) + print(dictionary[1][2][3][4][5][6][7][8]["key"]) |