mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.1 KiB
22 lines
1.1 KiB
4 years ago
|
[
|
||
|
{
|
||
|
"description": "Test a traveler that is still has the virus",
|
||
|
"code": "let traveler = {\n alreadyHadTheVirus: true,\n recovered: false,\n isVaccinated: false,\n}\n\n// Your code\n\nequal(traveler.isImmune, false)"
|
||
|
},
|
||
|
{
|
||
|
"description": "Test a traveler that has recovered",
|
||
|
"code": "let traveler = {\n alreadyHadTheVirus: true,\n recovered: true,\n isVaccinated: false,\n}\n\n// Your code\n\nequal(traveler.isImmune, true)"
|
||
|
},
|
||
|
{
|
||
|
"description": "Test a traveler who never had the virus and isn't vaccinated",
|
||
|
"code": "let traveler = {\n alreadyHadTheVirus: false,\n recovered: false,\n isVaccinated: false,\n}\n\n// Your code\n\nequal(traveler.isImmune, false)"
|
||
|
},
|
||
|
{
|
||
|
"description": "Test a traveler that is vaccinated",
|
||
|
"code": "let traveler = {\n alreadyHadTheVirus: false,\n recovered: false,\n isVaccinated: true,\n}\n\n// Your code\n\nequal(traveler.isImmune, true)"
|
||
|
},
|
||
|
{
|
||
|
"description": "Test a traveler that is vaccinated and recovered from the virus",
|
||
|
"code": "let traveler = { alreadyHadTheVirus: true, recovered: true, isVaccinated: true }\n\n// Your code\n\nequal(traveler.isImmune, true)"
|
||
|
}
|
||
|
]
|