Add missed branch

master
Oystein Kristoffer Tveit 2021-04-25 22:21:15 +02:00
parent da02308498
commit ed0e3bd871
1 changed files with 2 additions and 0 deletions

View File

@ -80,9 +80,11 @@ public class JavaTest {
@DisplayName("Test isCommentedSelection")
public void testIsCommentedSelection() {
String commentedSelection = "/* \n * test\n */";
String halfwayCommentedSelection = "/* \n test\n */";
String unCommentedSelection = "test";
assertTrue(lang.isCommentedSelection(commentedSelection));
assertFalse(lang.isCommentedSelection(halfwayCommentedSelection));
assertFalse(lang.isCommentedSelection(unCommentedSelection));
}