diff options
author | ydah <[email protected]> | 2024-11-27 19:53:18 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-12-02 18:39:49 +0000 |
commit | aa77bfd13ee183adde6bdc7812cfbb9580ea4b7a (patch) | |
tree | f6e4fc232998334b6ad3ad3da1ba89a0d0e32226 /test | |
parent | 90404ca46004e10e4e64e7b4e648d88ffcfb65ee (diff) |
[ruby/prism] Reject extra comma in array after keyword argument
Fixes: https://github.com/ruby/prism/issues/3109
https://github.com/ruby/prism/commit/9ed989c30d
Diffstat (limited to 'test')
-rw-r--r-- | test/prism/errors/array_with_double_commas.txt | 3 | ||||
-rw-r--r-- | test/prism/errors/double_splat_with_double_commas.txt | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/prism/errors/array_with_double_commas.txt b/test/prism/errors/array_with_double_commas.txt new file mode 100644 index 0000000000..7c971103f6 --- /dev/null +++ b/test/prism/errors/array_with_double_commas.txt @@ -0,0 +1,3 @@ +[a:1,,] + ^ unexpected ','; expected a `]` to close the array + diff --git a/test/prism/errors/double_splat_with_double_commas.txt b/test/prism/errors/double_splat_with_double_commas.txt new file mode 100644 index 0000000000..27873b7fac --- /dev/null +++ b/test/prism/errors/double_splat_with_double_commas.txt @@ -0,0 +1,3 @@ +[**a,,] + ^ unexpected ','; expected a `]` to close the array + |