mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
16 lines
445 B
Java
16 lines
445 B
Java
package fr.free.nrw.commons;
|
|
|
|
import static org.hamcrest.CoreMatchers.is;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
|
|
public class UtilsTest {
|
|
@Test public void stripLocalizedStringPass() {
|
|
Assert.assertThat(Utils.stripLocalizedString("Hello"), is("Hello"));
|
|
}
|
|
|
|
@Test public void stripLocalizedStringJa() {
|
|
Assert.assertThat(Utils.stripLocalizedString("\"こんにちは\"@ja"), is("こんにちは"));
|
|
}
|
|
}
|