Skip to content

Commit a6e3b7e

Browse files
committed
Fix tests
1 parent f18c1e8 commit a6e3b7e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Microsoft/Dashes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ action:
1010
- trim
1111
- " "
1212
tokens:
13-
- '\s[—–]\s'
13+
- '\s[—–]\s|\s[—–]|[—–]\s'

features/rules.feature

+5-4
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ Feature: Rules
152152
test.md:3:42:Microsoft.Dashes:Remove the spaces around ' —'.
153153
test.md:7:7:Microsoft.Dashes:Remove the spaces around ' —'.
154154
test.md:8:7:Microsoft.Dashes:Remove the spaces around '— '.
155-
test.md:9:7:Microsoft.Dashes:Remove the spaces around ' —'.
156-
test.md:10:7:Microsoft.Dashes:Remove the spaces around ' —'.
155+
test.md:9:7:Microsoft.Dashes:Remove the spaces around ' — '.
156+
test.md:10:7:Microsoft.Dashes:Remove the spaces around ' — '.
157157
"""
158158

159159
Scenario: Use of units
@@ -196,7 +196,7 @@ Feature: Rules
196196
Then the output should contain exactly:
197197
"""
198198
test.md:3:10:Microsoft.Ellipses:In general, don't use an ellipsis.
199-
test.md:5:13:Microsoft.Hyphens:' officially-' doesn't need a hyphen.
199+
test.md:5:14:Microsoft.Hyphens:'officially-maintained' doesn't need a hyphen.
200200
test.md:7:13:Microsoft.OxfordComma:Use the Oxford comma in 'blue, green and orange.'.
201201
test.md:11:10:Microsoft.Quotes:Punctuation should be inside the quotes.
202202
test.md:15:19:Microsoft.Semicolon:Try to simplify this sentence.
@@ -215,11 +215,12 @@ Feature: Rules
215215
When I test "Headings"
216216
Then the output should contain exactly:
217217
"""
218+
test.md:1:3:Microsoft.Headings:'Test: modern documentation management' should use sentence-style capitalization.
218219
test.md:1:7:Microsoft.HeadingColons:Capitalize ': m'.
219220
test.md:5:3:Microsoft.Headings:'This is a Heading' should use sentence-style capitalization.
220221
test.md:7:13:Microsoft.HeadingPunctuation:Don't use end punctuation in headings.
222+
test.md:9:3:Microsoft.Headings:'Accepting a JSON response' should use sentence-style capitalization.
221223
test.md:9:15:Microsoft.HeadingAcronyms:Avoid using acronyms in a title or heading.
222-
test.md:15:3:Microsoft.Headings:'8. Do step eight' should use sentence-style capitalization.
223224
"""
224225

225226
Scenario: Passive voice

0 commit comments

Comments
 (0)