From 883e97fbd7bb81a0c1cec3502cdb8fcc03e0fcf5 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Fri, 9 Oct 2015 18:51:43 +0100 Subject: [PATCH] TextToSpeechTestCase: use isTtsLangCode to check TextToSpeech.LANG_* --- .../src/com/reecedunn/espeak/test/TextToSpeechTestCase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/eSpeakTests/src/com/reecedunn/espeak/test/TextToSpeechTestCase.java b/android/eSpeakTests/src/com/reecedunn/espeak/test/TextToSpeechTestCase.java index d466b85e..f46db3fa 100644 --- a/android/eSpeakTests/src/com/reecedunn/espeak/test/TextToSpeechTestCase.java +++ b/android/eSpeakTests/src/com/reecedunn/espeak/test/TextToSpeechTestCase.java @@ -24,6 +24,7 @@ import android.util.Log; import java.util.Locale; +import static com.reecedunn.espeak.test.TtsMatcher.isTtsLangCode; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; @@ -71,7 +72,7 @@ public class TextToSpeechTestCase extends AndroidTestCase 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) {