install.fairie/dotfiles/.vim/plugged/ale/test/handler/test_starknet_handler.vader

37 lines
972 B
Text
Raw Normal View History

Before:
runtime ale_linters/cairo/starknet.vim
After:
call ale#linter#Reset()
Execute(The starknet handler should handle error messages correctly):
AssertEqual
\ [
\ {
\ 'lnum': 3,
\ 'col': 6,
\ 'text': 'Could not find module "starkware.cairo.commo.cairo_builtins". Searched in the following paths:',
\ 'type': 'E',
\ },
\ ],
\ ale_linters#cairo#starknet#Handle(bufnr(''), [
\ 'contract.cairo:3:6: Could not find module "starkware.cairo.commo.cairo_builtins". Searched in the following paths:',
\ 'from starkware.cairo.commo.cairo_builtins import HashBuiltin',
\ ' ^**********************************^',
\ ])
AssertEqual
\ [
\ {
\ 'lnum': 21,
\ 'col': 2,
\ 'text': 'Unsupported decorator: "vie".',
\ 'type': 'E',
\ },
\ ],
\ ale_linters#cairo#starknet#Handle(bufnr(''), [
\ 'contract.cairo:21:2: Unsupported decorator: "vie".',
\ '@vie',
\ ' ^*^',
\ ])