mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Add a bunch of additional test cases for ArcanistTextLinter
Summary: Self-explanatory, improve test coverage. Test Plan: Wrote and executed unit tests. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D10474
This commit is contained in:
parent
75ad848b9d
commit
f4fd7ad612
3 changed files with 17 additions and 0 deletions
3
src/lint/linter/__tests__/text/bad-charset.lint-test
Normal file
3
src/lint/linter/__tests__/text/bad-charset.lint-test
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
❤♎☀★☂♞
|
||||||
|
~~~~~~~~~~
|
||||||
|
error:1:1
|
6
src/lint/linter/__tests__/text/line-wrap.lint-test
Normal file
6
src/lint/linter/__tests__/text/line-wrap.lint-test
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
The quick brown fox jumps over the lazy dog.
|
||||||
|
~~~~~~~~~~
|
||||||
|
warning:1:1
|
||||||
|
~~~~~~~~~~
|
||||||
|
~~~~~~~~~~
|
||||||
|
{"config": {"text.max-line-length": 40}}
|
|
@ -0,0 +1,8 @@
|
||||||
|
The quick brown fox
|
||||||
|
jumps over the lazy dog.
|
||||||
|
~~~~~~~~~~
|
||||||
|
autofix:1:20
|
||||||
|
autofix:2:25
|
||||||
|
~~~~~~~~~~
|
||||||
|
The quick brown fox
|
||||||
|
jumps over the lazy dog.
|
Loading…
Reference in a new issue