Skip to content

Instantly share code, notes, and snippets.

@thomasdarimont
Created August 13, 2013 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasdarimont/6226212 to your computer and use it in GitHub Desktop.
Save thomasdarimont/6226212 to your computer and use it in GitHub Desktop.
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