install.fairie/dotfiles/.vim/plugged/ale/test/handler/test_starknet_handler.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

36 lines
972 B
Text

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',
\ ' ^*^',
\ ])