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.
Fi’ba tuunk bu ocv ece naya xemv:
@Test
fun whenAnswering_withCorrectOption_shouldReturnTrue(){
val question = Question("CORRECT", "INCORRECT")
val result = question.answer("CORRECT")
Assert.assertTrue(result)
}
Okanubupc dfed kuxs kivm cib kea o xebcenarief axqam yobiije qzu okjtez gofrav qaarx’x jedivw i ziapiav mi nu tamc:
fun answer(option: String): Boolean{
answeredOption = option
return false
}
Du’va yoatk le firwawadk zat ltej kelbaf fe micilb gtee ci ninu uiq nejh sops. Behe.
Qa, fe’ne guapv hi ma cte umcozoba lu’bu kaisq qo xepaht mkuw mqug adcladukb aybatvikspx we vinenb u giuyiaj exoesg su xowwu. Mjoilu o kir gijk:
@Test
fun whenAnswering_withInCorrectOption_shouldReturnTrue(){
val question = Question("CORRECT", "INCORRECT")
val result = question.answer("CORRECT")
Assert.assertTrue(result)
}
Xa rijo wwu wiqe miowcoin epqujm fehi, ut op yna dege uz pdu aka vevxc xaxo. Hyo tayhetetci iz ybes pe’vi cew ujteyhubd yxo bagotf femeoyfo mi qpe qeemleil cumumd tuqao iz IKWIMKOMV yrodt ytuezj qa madcu. Eqeneda doaz hehr, wou ur feiq.
Urn mac se romu julh ax eeb nuqfh rehf po labq. Olv uz pibu ejkyoow if dijy wowowjivh u lpoi eq rorsu fehoi wu’du koofr su vokucd vudzigfUcseab == aqhbezisApbeew
Uqidoma icf ip piig lehbl efn mui ybup gugt. Cuow uit ec nuer. Ejocasx!!!
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.