Skip to content

Commit

Permalink
FileConventions.Tests: add failing test
Browse files Browse the repository at this point in the history
Add failing test for WrapText function based on [1].

[1] nblockchain#117
  • Loading branch information
parhamsaremi committed Aug 7, 2023
1 parent 4597044 commit d3221a8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/FileConventions.Test/WrapTextTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,19 @@ let WrapTextTest5() =
let expectedResult = text

Assert.That(WrapText text characterCount, Is.EqualTo expectedResult)

[<Test>]
let WrapTextTest6() =
let characterCount = 64
let commitMsg =
"""foo: this is a header
this is a body:

This comment has been minimized.

Copy link
@knocte

knocte Aug 8, 2023

@parhamsaremi why do you keep violating things that other rules would flag, in your testcase?? you know very well that paragraphs need to start with an uppercase letter, at this point I can't believe you still don't remember this, man

This comment has been minimized.

Copy link
@parhamsaremi

parhamsaremi Aug 8, 2023

Author Owner

I didn't forget, I just didn't notice it was small. I'll fix it now.

```
A code block that has two conditions, it has a very long line that exceeds the limit.
It also has multiple paragraphs.
```"""

Assert.That(WrapText commitMsg characterCount, Is.EqualTo commitMsg)

0 comments on commit d3221a8

Please sign in to comment.