Created
August 13, 2013 22:11
-
-
Save thomasdarimont/6226212 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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