use of com.fsck.k9.mail.Address in project k-9 by k9mail.
the class ContactPictureLoaderTest method calcUnknownContactLetter_ignoresSpace.
@Test
public void calcUnknownContactLetter_ignoresSpace() {
Address address = new Address(" abcd <a@b.com>");
String result = ContactPictureLoader.calcUnknownContactLetter(address);
assertEquals("A", result);
}
use of com.fsck.k9.mail.Address in project k-9 by k9mail.
the class ContactPictureLoaderTest method calcUnknownContactLetter_withAsciiName.
@Test
public void calcUnknownContactLetter_withAsciiName() {
Address address = new Address("abcd <a@b.com>");
String result = ContactPictureLoader.calcUnknownContactLetter(address);
assertEquals("A", result);
}
use of com.fsck.k9.mail.Address in project k-9 by k9mail.
the class ContactPictureLoaderTest method calcUnknownContactLetter_withSurrogatePair.
@Test
public void calcUnknownContactLetter_withSurrogatePair() {
Address address = new Address("𐎵 <a@b.com>");
String result = ContactPictureLoader.calcUnknownContactLetter(address);
assertEquals("𐎵", result);
}
use of com.fsck.k9.mail.Address in project k-9 by k9mail.
the class ContactPictureLoaderTest method calcUnknownContactLetter_withLstroke.
@Test
public void calcUnknownContactLetter_withLstroke() {
Address address = new Address("Łatynka <a@b.com>");
String result = ContactPictureLoader.calcUnknownContactLetter(address);
assertEquals("Ł", result);
}
use of com.fsck.k9.mail.Address in project k-9 by k9mail.
the class ContactPictureLoaderTest method calcUnknownContactLetter_ignoresMatchEmoji.
@Test
public void calcUnknownContactLetter_ignoresMatchEmoji() {
Address address = new Address("😀 <a@b.com>");
String result = ContactPictureLoader.calcUnknownContactLetter(address);
assertEquals("?", result);
}
Aggregations