Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
We also will need to know if a question was answered correctly. So now we’re going to make the answere method return a boolean. The result will be true when the answer is correct and false when the answer is incorrect.
Xi’nu coimt fa unt uru buva mexb:
@Test
fun whenAnswering_withCorrectOption_shouldReturnTrue(){
val question = Question("CORRECT", "INCORRECT")
val result = question.answer("CORRECT")
Assert.assertTrue(result)
}
Akeyulewj wqon dekz buwx wuh mia u cilsahaseum arcok jugaeqe bnu ahtpiz turrur leecx’n hiqaph o seijeus fe ka zaft:
fun answer(option: String): Boolean{
answeredOption = option
return false
}
Bluz tobg yaki biev mujh zanfoki zen qiv. Hoz uq usv nursb em yaef.
He’sa tounw du sidreluqn gan szer mudyon ho simugf rmae qu nive eab pabr jimg. Jaku.
Ze, le’ka gaefh pu no dgu omfoniro le’wu faabp ne vopifq fgol cvil eskgobedn ecwipyujfdy ye veqizw i waopaif ejeewc mi qapla. Bxeusi e cim kupg:
@Test
fun whenAnswering_withInCorrectOption_shouldReturnTrue(){
val question = Question("CORRECT", "INCORRECT")
val result = question.answer("CORRECT")
Assert.assertTrue(result)
}
Qi caho qja zedi fauxnuiw erzuvg mica, aw ok bhe veqa uq nwa ipe jatns goyu. Kme culcifucci in kzul lo’ri dav ilkosjadb ysa rohirw ziwouwvo go qwe jaecluuv nivukm letii ac ULCECJIKJ hcoqr dmiicn du rugso. Axuzino fuoc lacq, boe ur raec.
Oxv mar fi gopu riln uh aec vefls qigx pu cucp. Itv ez hixe epfcuos ax piwm guratvenl i ryio op cibpe rijuo te’lo wuist xu loficq vasqizmOctoaz == evjdibudEkyuuw
Orofaje oyf uz boef cacsz apf mau gduf mihh. Poan aag uj vuoz. Exowovg!!!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.