void () { initText("a" + SURROGATE_PAIR + "b"); assertEquals(new LogicalPosition(0, 2), getEditor().offsetToLogicalPosition(3)); assertEquals(3, getEditor().logicalPositionToOffset(new LogicalPosition(0, 2))); assertEquals(new VisualPosition(0, 2), getEditor().logicalToVisualPosition(new LogicalPosition(0, 2))); assertEquals(new LogicalPosition(0, 2), getEditor().visualToLogicalPosition(new VisualPosition(0, 2))); }