Variables with underscores don't work in array length match syntax
See original GitHub issueA variable whose name contains an underscore will not properly parse in an array length match expression.
Scenario: varbs
* def arr = ['a','b','c','d','e']
* match arr == "#[5]"
* def two = 2
* def three = 3
* match arr == "#[two+three]"
* def t_wo = 2
# fails
* match arr == "#[t_wo+three]"
The last test fails with error:
match failed: EQUALS
$ | actual array length is 5 (LIST:STRING)
["a","b","c","d","e"]
'#[t_wo+three]'
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Using underscores and matching variable names to coerce ...
The array variable names are prefixed with an underscore (_); The array variable names are otherwise identically named in the receiving function ...
Read more >Underscore.js
Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.
Read more >What is the purpose of the single underscore "_" variable in ...
A dummy name when a variable is not intended to be used, but a name is required by syntax/semantics. · Many REPLs/shells store...
Read more >Usages of Underscore (_) in Scala - Baeldung
The underscore can be used to ignore variables and types that aren't used anywhere in the code. 3.1. Ignored Parameter.
Read more >PowerShell Variables and Arrays - Netwrix Blog
Discover what variables and arrays are in PowerShell. ... Sort array; Add to array; Array length; Remove item from array; Array contains ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aimanfatima great job ! thanks for your help and contributing 👍
1.3.0 released