test_starknet_handler.vader
1 Before: 2 runtime ale_linters/cairo/starknet.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(The starknet handler should handle error messages correctly): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 3, 12 \ 'col': 6, 13 \ 'text': 'Could not find module "starkware.cairo.commo.cairo_builtins". Searched in the following paths:', 14 \ 'type': 'E', 15 \ }, 16 \ ], 17 \ ale_linters#cairo#starknet#Handle(bufnr(''), [ 18 \ 'contract.cairo:3:6: Could not find module "starkware.cairo.commo.cairo_builtins". Searched in the following paths:', 19 \ 'from starkware.cairo.commo.cairo_builtins import HashBuiltin', 20 \ ' ^**********************************^', 21 \ ]) 22 23 AssertEqual 24 \ [ 25 \ { 26 \ 'lnum': 21, 27 \ 'col': 2, 28 \ 'text': 'Unsupported decorator: "vie".', 29 \ 'type': 'E', 30 \ }, 31 \ ], 32 \ ale_linters#cairo#starknet#Handle(bufnr(''), [ 33 \ 'contract.cairo:21:2: Unsupported decorator: "vie".', 34 \ '@vie', 35 \ ' ^*^', 36 \ ])