Skip to content

Commit d1562f3

Browse files
committed
Add more Dash tests
1 parent 2e58bf8 commit d1562f3

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

Microsoft/Dashes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ action:
1010
- remove
1111
- ' '
1212
tokens:
13-
- '([—–]\s)|(\s[—–])'
13+
- '[—–]\s|\s[—–]'

features/rules.feature

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ Feature: Rules
8686
When I test "Dashes"
8787
Then the output should contain exactly:
8888
"""
89-
test.md:3:42:Microsoft.Dashes:Remove the spaces around ' — '.
89+
test.md:3:42:Microsoft.Dashes:Remove the spaces around ' —'.
90+
test.md:7:7:Microsoft.Dashes:Remove the spaces around ' —'.
91+
test.md:8:7:Microsoft.Dashes:Remove the spaces around '— '.
92+
test.md:9:7:Microsoft.Dashes:Remove the spaces around ' —'.
93+
test.md:10:7:Microsoft.Dashes:Remove the spaces around ' —'.
9094
"""
9195

9296
Scenario: Use of units

fixtures/Dashes/test.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
# Dashes
22

3-
Emdashs should not be separated by spaces — not like this!
3+
Emdashs should not be separated by spaces —not like this!
4+
5+
phases—Best
6+
7+
phases —Best
8+
phases— Best
9+
phases — Best
10+
phases — Best

0 commit comments

Comments
 (0)