mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-26 04:59:59 +00:00
SpeechSynthesis: fix the getSampleText behaviour when passed Java-style locale codes.
This commit is contained in:
@@ -321,6 +321,12 @@ public class SpeechSynthesisTest extends AndroidTestCase
|
||||
{
|
||||
final Locale ianaLocale = new Locale(data.ianaLanguage, data.ianaCountry, data.variant);
|
||||
assertThat(SpeechSynthesis.getSampleText(getContext(), ianaLocale), is(data.sampleText));
|
||||
|
||||
if (!data.javaLanguage.equals(""))
|
||||
{
|
||||
final Locale javaLocale = new Locale(data.javaLanguage, data.javaCountry, data.variant);
|
||||
assertThat(SpeechSynthesis.getSampleText(getContext(), javaLocale), is(data.sampleText));
|
||||
}
|
||||
}
|
||||
catch (AssertionError e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user