use of com.quran.labs.androidquran.data.VerseRange in project quran_android by quran.
the class BaseTranslationPresenterTest method testCombineAyahDataArabicEmptyTranslations.
@Test
public void testCombineAyahDataArabicEmptyTranslations() {
VerseRange verseRange = new VerseRange(1, 1, 1, 2, 2);
List<QuranText> arabic = Arrays.asList(new QuranText(1, 1, "first ayah"), new QuranText(1, 2, "second ayah"));
List<QuranAyahInfo> info = presenter.combineAyahData(verseRange, arabic, new ArrayList<>());
assertThat(info).hasSize(2);
assertThat(info.get(0).sura).isEqualTo(1);
assertThat(info.get(0).ayah).isEqualTo(1);
assertThat(info.get(0).texts).hasSize(0);
assertThat(info.get(0).arabicText).isEqualTo("first ayah");
assertThat(info.get(1).sura).isEqualTo(1);
assertThat(info.get(1).ayah).isEqualTo(2);
assertThat(info.get(1).texts).hasSize(0);
assertThat(info.get(1).arabicText).isEqualTo("second ayah");
}
Aggregations