Skip to content

Commit 7058247

Browse files
committed
test: more test refinements
1 parent a3c80f2 commit 7058247

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

test/fixtures/PassiveVoice/test.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Passive Voice
22

3+
<!-- ❌ trigger on the use of passive voice -->
34
Great expectations were formed of him.
45
The house was filled with laughter.
56
He was struck by her beauty.
67
The streets were paved with gold.
78
The cake was left on the table.
9+
10+
<!-- ✅ ignore on the use of passive like words not used as passive -->
11+
The felt was soft and heavy.
12+
How was the set?

test/fixtures/Percentages/test.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Percentages
22

3+
<!-- ❌ trigger on the use of non-numeric percentage -->
34
The inflation rate rose by three percent last month.
5+
6+
<!-- ✅ ignore the use of zero percent -->
47
To expect a zero percent margin of error is unreasonable.
8+
9+
<!-- ✅ ignore the use of numeral percentage -->
10+
That's a 20 percent spike in detection rate.

test/snapshots/PassiveVoice.log

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
test.md:3:20:Prim.PassiveVoice:'were formed' looks like passive voice.
2-
test.md:4:11:Prim.PassiveVoice:'was filled' looks like passive voice.
3-
test.md:5:4:Prim.PassiveVoice:'was struck' looks like passive voice.
4-
test.md:6:13:Prim.PassiveVoice:'were paved' looks like passive voice.
5-
test.md:7:10:Prim.PassiveVoice:'was left' looks like passive voice.
1+
test.md:4:20:Prim.PassiveVoice:'were formed' looks like passive voice.
2+
test.md:5:11:Prim.PassiveVoice:'was filled' looks like passive voice.
3+
test.md:6:4:Prim.PassiveVoice:'was struck' looks like passive voice.
4+
test.md:7:13:Prim.PassiveVoice:'were paved' looks like passive voice.
5+
test.md:8:10:Prim.PassiveVoice:'was left' looks like passive voice.

test/snapshots/Percentages.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
test.md:3:28:Prim.Percentages:Use a numeral to represent a percentage.
1+
test.md:4:28:Prim.Percentages:Use a numeral to represent a percentage.

0 commit comments

Comments
 (0)