Skip to content

Commit

Permalink
Add more tests for LaTeX to unicode conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
lenhard committed Feb 10, 2017
1 parent 2b886cb commit 9eef09c
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,39 @@ public void testSWithCaron() {
assertEquals("Š", formatter.format("{\\v{S}}"));
}

@Test
public void testIWithDiaresis() {
assertEquals("ï", formatter.format("\\\"{i}"));
}

@Test
public void testIWithDiaresisAndEscapedI() {
// this might look strange in the test, but is actually a correct translation and renders identically to the above example in the UI
assertEquals("ı̈", formatter.format("\\\"{\\i}"));
}


@Test
public void testIWithDiaresisAndUnnecessaryBraces() {
assertEquals("ï", formatter.format("{\\\"{i}}"));
}

@Test
public void testUpperCaseIWithDiaresis() {
assertEquals("Ï", formatter.format("\\\"{I}"));
}

@Test
public void testPolishName() {
assertEquals("Łęski", formatter.format("\\L\\k{e}ski"));
}


@Test
public void testDoubleCombiningAccents() {
assertEquals("ώ", formatter.format("$\\acute{\\omega}$"));
}

@Test
public void testCombiningAccentsCase1() {
assertEquals("ḩ", formatter.format("{\\c{h}}"));
Expand Down

0 comments on commit 9eef09c

Please sign in to comment.