From ed0e3bd871cca53a999c084cdb8a7ce9c27a3396 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 25 Apr 2021 22:21:15 +0200 Subject: [PATCH] Add missed branch --- src/test/java/app/model/languages/JavaTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/app/model/languages/JavaTest.java b/src/test/java/app/model/languages/JavaTest.java index 45d1be3..0179899 100644 --- a/src/test/java/app/model/languages/JavaTest.java +++ b/src/test/java/app/model/languages/JavaTest.java @@ -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)); }