diff --git a/src/test/java/net/sf/jabref/logic/layout/format/LatexToUnicodeFormatterTest.java b/src/test/java/net/sf/jabref/logic/layout/format/LatexToUnicodeFormatterTest.java index a894506579b..d65e24bf594 100644 --- a/src/test/java/net/sf/jabref/logic/layout/format/LatexToUnicodeFormatterTest.java +++ b/src/test/java/net/sf/jabref/logic/layout/format/LatexToUnicodeFormatterTest.java @@ -45,9 +45,16 @@ public void testFormatUmlaut() { assertEquals("Ä", formatter.format("{\\\"{A}}")); } + @Test + public void handleLaTeXCommandsWhichAreSubstrings() { + assertEquals("ç", formatter.format("$\\c{c}$")); + assertEquals("χ", formatter.format("$\\chi$")); + } + @Test public void testFormatStripLatexCommands() { assertEquals("-", formatter.format("\\mbox{-}")); + assertEquals("text", formatter.format("\\textit{text}")); } @Test