Skip to content

Commit

Permalink
test: update comment cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Nov 5, 2024
1 parent 57180ee commit 399cb17
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
31 changes: 16 additions & 15 deletions testdata/features/comments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,30 @@ Feature: Comments
When I test comments for ".md"
Then the output should contain exactly:
"""
test.md:15:19:vale.Redundancy:'ACT test' is redundant
test.md:19:19:vale.Redundancy:'ACT test' is redundant
test.md:25:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:77:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:87:16:demo.Raw:Link "[must not use `.html`](../index.html)" must use the .md file extension.
test.md:91:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:93:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:103:19:vale.Redundancy:'ACT test' is redundant
test.md:109:19:vale.Redundancy:'ACT test' is redundant
test.md:23:19:vale.Redundancy:'ACT test' is redundant
test.md:33:19:vale.Redundancy:'ACT test' is redundant
test.md:37:19:vale.Redundancy:'ACT test' is redundant
test.md:43:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:95:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:105:16:demo.Raw:Link "[must not use `.html`](../index.html)" must use the .md file extension.
test.md:109:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:111:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:115:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:117:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:121:19:vale.Redundancy:'ACT test' is redundant
test.md:127:19:vale.Redundancy:'ACT test' is redundant
test.md:133:19:vale.Redundancy:'ACT test' is redundant
test.md:127:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:129:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:133:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:135:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:139:19:vale.Redundancy:'ACT test' is redundant
test.md:145:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:147:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:145:19:vale.Redundancy:'ACT test' is redundant
test.md:151:19:vale.Redundancy:'ACT test' is redundant
test.md:151:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:153:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:157:19:vale.Redundancy:'ACT test' is redundant
test.md:163:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:165:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
test.md:169:19:vale.Redundancy:'ACT test' is redundant
test.md:169:48:demo.Ending-Preposition:Don't end a sentence with 'for.'
test.md:171:20:demo.Ending-Preposition:Don't end a sentence with 'of.'
"""

Scenario: reStructuredText
Expand Down
14 changes: 7 additions & 7 deletions testdata/fixtures/comments/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This is a sentance of.
spec:
type: LoadBalancer
ports:
- port: 80
- port: 80
selector:
app: nginx
---
Expand All @@ -75,20 +75,20 @@ This is a sentance of.
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
```
2. few other steps.
<!-- vale off -->
1. This is a sentance of.
3. This is a sentance of.
```bash
SSH should not typically be used within containers.
Ensure that non-SSH services are not using port 22.
```
<!-- vale on -->
<!-- vale on -->

something else.

Expand Down

0 comments on commit 399cb17

Please sign in to comment.