diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_solc_handler.vader | 16 | ||||
-rw-r--r-- | test/linter/test_solc_commit.vader | 14 |
2 files changed, 24 insertions, 6 deletions
diff --git a/test/handler/test_solc_handler.vader b/test/handler/test_solc_handler.vader index 8c197507..dcaa8b2d 100644 --- a/test/handler/test_solc_handler.vader +++ b/test/handler/test_solc_handler.vader @@ -21,10 +21,14 @@ Execute(Check solc output parsing): \ }, \ ], \ ale_linters#solidity#solc#Handle(bufnr(''), [ - \ 'raiden_contracts/data/source/raiden/Token.sol:40:48: Warning: This declaration shadows an existing declaration.', - \ ' function decimals() external view returns (uint8 decimals);', - \ ' ^------------^', - \ '/home/karl/raiden-contracts/raiden_contracts/data/source/test/OneToNInternalsTest.sol:23:16: Error: Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).', - \ ' return OneToN.getSinleSignature(signatures, i);', - \ ' ^----------------------^', + \ 'Warning: This declaration shadows an existing declaration.', + \ ' --> /path/to/file.sol:40:48:', + \ ' |', + \ '40 | function decimals() external view returns (uint8 decimals);', + \ ' | ^------------^', + \ 'Error: Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).', + \ ' --> /path/to/file.sol:23:16: ', + \ ' | ', + \ '23 | return OneToN.getSinleSignature(signatures, i);', + \ ' | ^----------------------^', \ ]) diff --git a/test/linter/test_solc_commit.vader b/test/linter/test_solc_commit.vader new file mode 100644 index 00000000..e25c47e7 --- /dev/null +++ b/test/linter/test_solc_commit.vader @@ -0,0 +1,14 @@ +Before: + call ale#assert#SetUpLinterTest('solidity', 'solc') + let g:ale_solidity_solc_executable = 'solc-v0.8.4+commit.c7e474f2' + +After: + call ale#assert#TearDownLinterTest() + +Execute(The executable command should be configurable): + AssertLinter 'solc-v0.8.4+commit.c7e474f2', 'solc-v0.8.4+commit.c7e474f2 %s' + +Execute(The options should be configurable): + let g:ale_solidity_solc_options = '--foobar' + + AssertLinter 'solc-v0.8.4+commit.c7e474f2', 'solc-v0.8.4+commit.c7e474f2 --foobar %s' |