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

final SpeechSynthesis synth = new SpeechSynthesis(getContext(), mCallback); final SpeechSynthesis synth = new SpeechSynthesis(getContext(), mCallback);
mVoices = synth.getAvailableVoices(); mVoices = synth.getAvailableVoices();
assertThat(mVoices, is(notNullValue())); assertThat(mVoices, is(notNullValue()));
assertThat(mVoices.size(), is(78));
assertThat(mVoices.size(), is(VoiceData.voices.length));
} }
return mVoices; return mVoices;
} }

Loading…
Cancel
Save