Browse Source

TextToSpeechTestCase: use isTtsLangCode to check TextToSpeech.LANG_*

master
Reece H. Dunn 9 years ago
parent
commit
883e97fbd7

+ 2
- 1
android/eSpeakTests/src/com/reecedunn/espeak/test/TextToSpeechTestCase.java View File



import java.util.Locale; import java.util.Locale;


import static com.reecedunn.espeak.test.TtsMatcher.isTtsLangCode;
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*; import static org.hamcrest.Matchers.*;


Log.d("TextToSpeechTestCase", "setUp: available = " + available); Log.d("TextToSpeechTestCase", "setUp: available = " + available);
} }


assertThat(available, is(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE));
assertThat(available, isTtsLangCode(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE));
} }
catch (Exception e) catch (Exception e)
{ {

Loading…
Cancel
Save