From fd7cfab17acd0f71698f87b39ebd48b675c1046a Mon Sep 17 00:00:00 2001 From: Parham Date: Thu, 3 Aug 2023 14:40:05 +0330 Subject: [PATCH] FileConventions.Tests: add failing test Add failing test for WrapText function based on [1]. [1] https://github.com/nblockchain/conventions/issues/117 --- src/FileConventions.Test/WrapTextTests.fs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/FileConventions.Test/WrapTextTests.fs b/src/FileConventions.Test/WrapTextTests.fs index 13d8431e4..22f716d2e 100644 --- a/src/FileConventions.Test/WrapTextTests.fs +++ b/src/FileConventions.Test/WrapTextTests.fs @@ -107,3 +107,15 @@ let WrapTextTest5() = let expectedResult = text Assert.That(WrapText text characterCount, Is.EqualTo expectedResult) + +[] +let WrapTextTest6() = + let characterCount = 64 + let commitMsg = + """``` +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)