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 3, 2023
1 parent 4597044 commit fd7cfab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/FileConventions.Test/WrapTextTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,15 @@ let WrapTextTest5() =
let expectedResult = text

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

[<Test>]
let WrapTextTest6() =
let characterCount = 64
let commitMsg =
"""```

This comment has been minimized.

Copy link
@knocte

knocte Aug 4, 2023

@parhamsaremi a commit msg that starts with ```????? can we please not have extremely weird unit tests please /cc @realmarv

This comment has been minimized.

Copy link
@parhamsaremi

parhamsaremi Aug 7, 2023

Author Owner

The problem was just with the code block meaning that the existence of header is irrelevant for getting the red test. but I'll add a header now since this is a non-complete commit message.

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 fd7cfab

Please sign in to comment.