centic9 commented on code in PR #732:
URL: https://github.com/apache/commons-text/pull/732#discussion_r2613244081


##########
src/test/java/org/apache/commons/text/similarity/LongestCommonSubsequenceTest.java:
##########
@@ -89,6 +89,8 @@ void testLogestCommonSubsequence() {
         assertEquals("", subject.logestCommonSubsequence("", ""));
         assertEquals("", subject.logestCommonSubsequence("left", ""));
         assertEquals("", subject.logestCommonSubsequence("", "right"));
+        assertEquals("", subject.logestCommonSubsequence("l", "a"));

Review Comment:
   As the implementation has some checks and different behavior for 1 character 
or more than 1 character it tries to cover a few more branches, i.e. lines 
which are already covered, but some of the "if-conditions" not covered.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to