Skip to content

Commit

Permalink
#431: Added bad weather test scenario.
Browse files Browse the repository at this point in the history
  • Loading branch information
redcatbear committed Jan 6, 2025
1 parent d64456d commit 22ab6b0
Showing 1 changed file with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,12 @@ void testWhenInsideMarkdownCodeBlockThenNoSpecificationItemMustBeDetected(final
@ParameterizedTest
@CsvSource(
{
"'', ''",
"', '",
"'`', '`'",
"'``', '``'",
"'````', '````'",
"'``` ', ' ```'",
"'``` ', ' ```'",
"' ```', '``` '",
"'```java ', ' ```java'",
"'~~~', '~~~'",
"'~~~java', '~~~java'",
"'~~~~java ', ' ~~~~java '"
"`,`",
"``,``",
" ``', ``",
"`` ,`` ",
"``java,``",
"~~,~~",
})
void testWhenNotInsideMarkdownCodeBlockThenSpecificationItemMustBeDetected(final String startMarker,
final String endMarker)
Expand All @@ -199,6 +193,7 @@ void testWhenNotInsideMarkdownCodeBlockThenSpecificationItemMustBeDetected(final
contains(item()
.id(SpecificationItemId.parseId("req~example~1"))
.location("file_without_code_block.md", 4)
.description(endMarker) // End marker looks like part of the description in this case.
.build()));
}

Expand Down

0 comments on commit 22ab6b0

Please sign in to comment.