mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 19:29:54 +01:00
Account for grapheme cluster when trimming to fit a specific length.
Fixes #10076
This commit is contained in:
committed by
Alex Hart
parent
da4be5c1cf
commit
f06817f00d
@@ -1,6 +1,11 @@
|
||||
package org.thoughtcrime.securesms.profiles;
|
||||
|
||||
import android.app.Application;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.annotation.Config;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
@@ -8,6 +13,8 @@ import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertSame;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
@Config(manifest = Config.NONE, application = Application.class)
|
||||
public final class ProfileNameTest {
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user