6 |
|
|
7 |
import java.util.ArrayList; |
import java.util.ArrayList; |
8 |
import java.util.List; |
import java.util.List; |
9 |
|
import java.util.Locale; |
10 |
|
|
11 |
import org.junit.BeforeClass; |
import org.junit.BeforeClass; |
12 |
import org.junit.Test; |
import org.junit.Test; |
51 |
assertEquals(0.5, I8NUtil.qmTranslation(langs4, t), .00000000001); |
assertEquals(0.5, I8NUtil.qmTranslation(langs4, t), .00000000001); |
52 |
} |
} |
53 |
|
|
54 |
|
@Test |
55 |
|
public void testGetLocalesForLang() { |
56 |
|
List<Locale> locales = I8NUtil.getLocalesForLang("en"); |
57 |
|
|
58 |
|
assertTrue(locales.contains(new Locale("en", "za"))); |
59 |
|
assertTrue(locales.contains(new Locale("en", "sg"))); |
60 |
|
} |
61 |
|
|
62 |
} |
} |