Corrected name of foreign lower case variable in tests
@@ -10,7 +10,7 @@ public class ToUpperCaseUnitTest {
private static final Locale TURKISH = new Locale("tr");
private String name = "John Doe";
- private String foreignUppercase = "\u0069";
+ private String foreignLowercase = "\u0069";
@Test
public void givenMixedCaseString_WhenToUpperCase_ThenResultIsUpperCase() {
@@ -19,11 +19,11 @@ public class ToUpperCaseUnitTest {
@Test
public void givenForeignString_WhenToUpperCaseWithoutLocale_ThenResultIsUpperCase() {
- assertEquals("\u0049", foreignUppercase.toUpperCase());
+ assertEquals("\u0049", foreignLowercase.toUpperCase());
}
@Test
public void givenForeignString_WhenToUpperCaseWithLocale_ThenResultIsUpperCase() {
- assertEquals("\u0130", foreignUppercase.toUpperCase(TURKISH));
+ assertEquals("\u0130", foreignLowercase.toUpperCase(TURKISH));
}
}
