kyu_8.set_alarm package¶
Submodules¶
kyu_8.set_alarm.set_alarm module¶
-
kyu_8.set_alarm.set_alarm.
set_alarm
(employed, vacation)[source]¶ A function named setAlarm which receives two parameters. The first parameter, employed, is true whenever you are employed and the second parameter, vacation is true whenever you are on vacation.
The function should return true if you are employed and not on vacation (because these are the circumstances under which you need to set an alarm). It should return false otherwise.
Examples:
setAlarm(true, true) -> false setAlarm(false, true) -> false setAlarm(false, false) -> false setAlarm(true, false) -> true
- Parameters
employed –
vacation –
- Returns
kyu_8.set_alarm.test_set_alarm module¶
-
class
kyu_8.set_alarm.test_set_alarm.
SetAlarmTestCase
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Testing set_alarm function
-
test_set_alarm
()[source]¶ Testing set_alarm function with various test inputs.
The function should return true if you are employed and not on vacation (because these are the circumstances under which you need to set an alarm). It should return false otherwise.
Examples:
setAlarm(true, true) -> false setAlarm(false, true) -> false setAlarm(false, false) -> false setAlarm(true, false) -> true :return:
-