mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-19 13:00:54 -07:00
Add unit tests for function names with "#"
This commit is contained in:
parent
20fd67da07
commit
b014ce13da
1 changed files with 2 additions and 0 deletions
|
@ -2759,6 +2759,8 @@ prop_readFunctionDefinition10 = isOk readFunctionDefinition "function foo () { t
|
|||
prop_readFunctionDefinition11 = isWarning readFunctionDefinition "function foo{\ntrue\n}"
|
||||
prop_readFunctionDefinition12 = isOk readFunctionDefinition "function []!() { true; }"
|
||||
prop_readFunctionDefinition13 = isOk readFunctionDefinition "@require(){ true; }"
|
||||
prop_readFunctionDefinition14 = isOk readFunctionDefinition "foo#bar(){ :; }"
|
||||
prop_readFunctionDefinition15 = isNotOk readFunctionDefinition "#bar(){ :; }"
|
||||
readFunctionDefinition = called "function" $ do
|
||||
start <- startSpan
|
||||
functionSignature <- try readFunctionSignature
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue