mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
8e47f82de6
16 changed files with 326 additions and 52 deletions
|
|
@ -1,10 +1,10 @@
|
|||
package fr.free.nrw.commons;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
|
||||
public class UtilsTest {
|
||||
@Test public void stripLocalizedStringPass() {
|
||||
Assert.assertThat(Utils.stripLocalizedString("Hello"), is("Hello"));
|
||||
|
|
@ -13,4 +13,20 @@ public class UtilsTest {
|
|||
@Test public void stripLocalizedStringJa() {
|
||||
Assert.assertThat(Utils.stripLocalizedString("\"こんにちは\"@ja"), is("こんにちは"));
|
||||
}
|
||||
|
||||
@Test public void capitalizeLowercase() {
|
||||
Assert.assertThat(Utils.capitalize("hello"), is("Hello"));
|
||||
}
|
||||
|
||||
@Test public void capitalizeFullCaps() {
|
||||
Assert.assertThat(Utils.capitalize("HELLO"), is("HELLO"));
|
||||
}
|
||||
|
||||
@Test public void capitalizeNumbersPass() {
|
||||
Assert.assertThat(Utils.capitalize("12x"), is("12x"));
|
||||
}
|
||||
|
||||
@Test public void capitalizeJaPass() {
|
||||
Assert.assertThat(Utils.capitalize("こんにちは"), is("こんにちは"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue