test_naga_handler.vader
1 Before: 2 runtime ale_linters/wgsl/naga.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(Error handler should parse error message and position from input): 8 let example_output = [ 9 \ "error: expected global item ('struct', 'let', 'var', 'type', ';', 'fn') or the end of the file, found '['", 10 \ " ┌─ wgsl:5:1", 11 \ " │", 12 \ "5 │ [[group(1), binding(0)]]", 13 \ " │ ^ expected global item ('struct', 'let', 'var', 'type', ';', 'fn') or the end of the file", 14 \ "Could not parse WGSL", 15 \ ] 16 let actual = ale#handlers#naga#Handle(0, example_output) 17 let expected = [{ 18 \ "text": "expected global item ('struct', 'let', 'var', 'type', ';', 'fn') or the end of the file, found '['", 19 \ "lnum": 5, 20 \ "col": 1, 21 \ "type": "E", 22 \ }] 23 AssertEqual actual, expected