]> git.madduck.net Git - etc/vim.git/blob - test/handler/test_msgfmt_hander.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / handler / test_msgfmt_hander.vader
1 Before:
2   runtime ale_linters/po/msgfmt.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(Duplicate messages should be made easier to navigate):
8   AssertEqual
9   \ [
10   \   {'lnum': 14, 'col': 0, 'type': 'W', 'text': 'some other thing'},
11   \   {'lnum': 1746, 'col': 0, 'type': 'W', 'text': 'duplicate of message at line 262'},
12   \   {'lnum': 262, 'col': 0, 'type': 'W', 'text': 'first location of duplicate of message at line 1746'},
13   \   {'lnum': 666, 'col': 0, 'type': 'W', 'text': 'duplicate message definition...'},
14   \   {'lnum': 888, 'col': 0, 'type': 'W', 'text': 'some other thing'},
15   \   {'lnum': 999, 'col': 0, 'type': 'W', 'text': '...this is the location of the first definition'},
16   \ ],
17   \ ale_linters#po#msgfmt#Handle(bufnr(''), [
18   \   '/tmp/v6GMUFf/16/foo.po:14: some other thing',
19   \   '/tmp/v6GMUFf/16/foo.po:1746: duplicate message definition...',
20   \   '/tmp/v6GMUFf/16/foo.po:262: ...this is the location of the first definition',
21   \   '/tmp/v6GMUFf/16/foo.po:666: duplicate message definition...',
22   \   '/tmp/v6GMUFf/16/foo.po:888: some other thing',
23   \   '/tmp/v6GMUFf/16/foo.po:999: ...this is the location of the first definition',
24   \ ])