Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package de.tutorials.training.testing;
import static org.junit.Assert.*;
import java.util.Locale;
import org.junit.Test;
public class ToUpperCaseInTurkeyLocaleTests {
@Test
public void foo() {
String s = "aia".toUpperCase(
Locale.forLanguageTag("tr-TR") // good :)
// new Locale("tr-TR") // bad
);
assertEquals("AİA",s);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.