Skip to content

Commit f366393

Browse files
committed
test: more test refinements
1 parent 64dadd6 commit f366393

File tree

6 files changed

+30
-26
lines changed

6 files changed

+30
-26
lines changed

test/fixtures/Latin/test.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
# Latin
22

3-
<!-- circa -->
3+
<!-- ❌ trigger on the use of circa -->
44
He was born circa 1600.
5+
<!-- ✅ ignore the use of circadian -->
56
The circadian rhythm regulates sleep and wakefulness.
67

7-
<!-- e.g. -->
8+
<!-- ❌ trigger on the use of e.g./eg -->
89
The rocky planets (e.g., Mercury) are closest to our sun.
910
Farmer Brown sells his produce (eg, apples, oranges, carrots) at the market.
1011

11-
<!-- ergo -->
12+
<!-- ❌ trigger on the use of ergo -->
1213
The products are poorly constructed; ergo, they break easily.
14+
<!-- ✅ ignore the use of ergonomic -->
1315
The ergonomic mouse reduces hand strain.
1416

15-
<!-- et al. -->
17+
<!-- ❌ trigger on the use of et al. -->
1618
Taylor et al., 2018
1719

18-
<!-- etc. -->
20+
<!-- ❌ trigger on the use of etc. -->
1921
You can leave your coats, umbrellas, etc., at the door.
2022

21-
<!-- i.e. -->
23+
<!-- ❌ trigger on the use of i.e./ie -->
2224
The rocky planets (i.e., Mercury, Venus, Earth, and Mars) are closest to our sun.
2325
Mercury, Venus, Earth and Mars (ie, the rocky planets) are closest to our sun.
2426

25-
<!-- vs. -->
27+
<!-- ❌ trigger on the use of vs. -->
2628
It'll be the Red Sox vs. the Yankees in tonight's game.
2729

28-
<!-- versus -->
30+
<!-- ❌ trigger on the use of versus -->
2931
Monitor your liabilities versus your assets.
3032

31-
<!-- via -->
33+
<!-- ❌ trigger on the use of via -->
3234
The London to Cairo flight goes via Rome.
3335
I could not comprehend the abbreviated captions. <!-- negation -->
3436

35-
<!-- viz -->
37+
<!-- ❌ trigger on the use of viz. -->
3638
Our philosophy is minimalist, viz., simple lines and clean colors.

test/fixtures/OptionalPlurals/test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Optional Plurals
22

3+
<!-- ❌ trigger on the use of optional plurals -->
34
You can install other extension(s) in the browser.
45
Use checkbox(es) as needed in your form.

test/fixtures/Ordinal/test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Ordinal
22

3+
<!-- ❌ trigger on the use of first, followed by secondly, followed by thirdly -->
34
Firstly, the plan lacks sufficient funding. Secondly, the timeline is unrealistic. Thirdly, there is no clear strategy for implementation.

test/snapshots/Latin.log

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
test.md:4:13:Prim.Latin:Avoid latin. Use 'around' or 'about' instead of 'circa'.
2-
test.md:8:20:Prim.Latin:Avoid latin. Use 'for example' instead of 'e.g.,'.
3-
test.md:9:33:Prim.Latin:Avoid latin. Use 'for example' instead of 'eg,'.
4-
test.md:12:38:Prim.Latin:Avoid latin. Use 'therefore' instead of 'ergo'.
5-
test.md:16:8:Prim.Latin:Avoid latin. Use 'and others' instead of 'et al.'.
6-
test.md:19:38:Prim.Latin:Avoid latin. Use 'and other(s)' instead of 'etc.'.
7-
test.md:22:20:Prim.Latin:Avoid latin. Use 'that is' instead of 'i.e.,'.
8-
test.md:23:33:Prim.Latin:Avoid latin. Use 'that is' instead of 'ie,'.
9-
test.md:26:22:Prim.Latin:Avoid latin. Use 'against' instead of 'vs.'.
10-
test.md:29:26:Prim.Latin:Avoid latin. Use 'against' instead of 'versus'.
11-
test.md:32:33:Prim.Latin:Avoid latin. Use 'over' or 'through' instead of 'via'.
12-
test.md:36:31:Prim.Latin:Avoid latin. Use 'namely' instead of 'viz.'.
2+
test.md:9:20:Prim.Latin:Avoid latin. Use 'for example' instead of 'e.g.,'.
3+
test.md:10:33:Prim.Latin:Avoid latin. Use 'for example' instead of 'eg,'.
4+
test.md:13:38:Prim.Latin:Avoid latin. Use 'therefore' instead of 'ergo'.
5+
test.md:18:8:Prim.Latin:Avoid latin. Use 'and others' instead of 'et al.'.
6+
test.md:21:38:Prim.Latin:Avoid latin. Use 'and other(s)' instead of 'etc.'.
7+
test.md:24:20:Prim.Latin:Avoid latin. Use 'that is' instead of 'i.e.,'.
8+
test.md:25:33:Prim.Latin:Avoid latin. Use 'that is' instead of 'ie,'.
9+
test.md:28:22:Prim.Latin:Avoid latin. Use 'against' instead of 'vs.'.
10+
test.md:31:26:Prim.Latin:Avoid latin. Use 'against' instead of 'versus'.
11+
test.md:34:33:Prim.Latin:Avoid latin. Use 'over' or 'through' instead of 'via'.
12+
test.md:38:31:Prim.Latin:Avoid latin. Use 'namely' instead of 'viz.'.

test/snapshots/OptionalPlurals.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
test.md:3:23:Prim.OptionalPlurals:Don't use plurals in parentheses such as in 'extension(s)'.
2-
test.md:4:5:Prim.OptionalPlurals:Don't use plurals in parentheses such as in 'checkbox(es)'.
1+
test.md:4:23:Prim.OptionalPlurals:Don't use plurals in parentheses such as in 'extension(s)'.
2+
test.md:5:5:Prim.OptionalPlurals:Don't use plurals in parentheses such as in 'checkbox(es)'.

test/snapshots/Ordinal.log

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
test.md:3:1:Prim.Ordinal:Don't add -ly to an ordinal number.
2-
test.md:3:45:Prim.Ordinal:Don't add -ly to an ordinal number.
3-
test.md:3:84:Prim.Ordinal:Don't add -ly to an ordinal number.
1+
test.md:4:1:Prim.Ordinal:Don't add -ly to an ordinal number.
2+
test.md:4:45:Prim.Ordinal:Don't add -ly to an ordinal number.
3+
test.md:4:84:Prim.Ordinal:Don't add -ly to an ordinal number.

0 commit comments

Comments
 (0)