forked from nblockchain/conventions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FileConventions.Tests: add failing test
Add failing test for WrapText function based on [1]. [1] nblockchain#117
- Loading branch information
1 parent
4597044
commit fd7cfab
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
parhamsaremi
Author
Owner
|
||
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) |
@parhamsaremi a commit msg that starts with ```????? can we please not have extremely weird unit tests please /cc @realmarv