Test and fix Java to IANA country code mapping.

This commit is contained in:
Reece H. Dunn
2014-10-28 15:33:11 +00:00
parent 6576742917
commit 328f4cfdc9
2 changed files with 16 additions and 3 deletions
@@ -179,6 +179,14 @@ public class SpeechSynthesisTest extends TextToSpeechTestCase
}
}
public void testJavaToIanaCountryCode()
{
for (VoiceData.Voice data : VoiceData.voices)
{
assertThat(SpeechSynthesis.getIanaCountryCode(data.javaCountry), is(data.ianaCountry));
}
}
public void testAddedVoices()
{
getVoices(); // Ensure that the voice data has been populated.