Add missed branch

This commit is contained in:
Oystein Kristoffer Tveit 2021-04-25 22:21:15 +02:00
parent da02308498
commit ed0e3bd871

View File

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