Browse Source

SpeechSynthesisTest: check the number of voices against the length of the test data array (VoiceData.voices) instead of hard coding it.

master
Reece H. Dunn 12 years ago
parent
commit
87ccc3a61e

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

@@ -108,7 +108,7 @@ public class SpeechSynthesisTest extends AndroidTestCase
final SpeechSynthesis synth = new SpeechSynthesis(getContext(), mCallback);
mVoices = synth.getAvailableVoices();
assertThat(mVoices, is(notNullValue()));
assertThat(mVoices.size(), is(78));
assertThat(mVoices.size(), is(VoiceData.voices.length));
}
return mVoices;
}

Loading…
Cancel
Save