diff --git a/src/test/java/org/jabref/model/strings/StringUtilTest.java b/src/test/java/org/jabref/model/strings/StringUtilTest.java index d68a832dc3a..a3b82de9eb6 100644 --- a/src/test/java/org/jabref/model/strings/StringUtilTest.java +++ b/src/test/java/org/jabref/model/strings/StringUtilTest.java @@ -148,7 +148,10 @@ void testStripBrackets() { @Test void testGetPart() { - // Should be added + assertEquals("{roupa}", StringUtil.getPart("O rato roeu a {roupa} do rei de roma", 13, false)); + assertEquals("", StringUtil.getPart("", 0, false)); + assertEquals("", StringUtil.getPart("Um passo por }dia}", 12, false)); + assertEquals("dia", StringUtil.getPart("Um passo por dia", 12, true)); } @Test