-
Advanced capstone project exercise 2.4
Hi there,
Im currently working on ex 2.4 for Advanced Capstone, however i was failed to get this exercise to pass
I got every exercised passed instead of this one
quizItem success description error
——————————————————————————————————————————————————————
exercise2.1 Pass “check if race day in process” “”
exercise2.1 Pass “have correct schema” “”
exercise2.2 Pass “check if lap table in process” “”
exercise2.2 Pass “only contains data for 2nd Jan 2020” “”
exercise2.2 Pass “contain all columns for 2nd Jan 2020” “”
exercise2.3 Pass “not allowed to use select keyword” “”
exercise2.3 Pass “return correct values for temp” “”
exercise2.3 Pass “return correct values for wind” “”
exercise2.3 Pass “return correct values for all” “”
exercise2.4 Fail “when given the wrong option return error \”<mysensor> is not a valid option for mysensor – valid options include `temp`tyre`wind`all\”” “”
exercise2.5 Pass “func should return same result as before” “”
exercise2.5 Pass “`p attribute exists” “” </p><p><br></p><p>I couldnt find where is error causing, as i saw the result of error message is returning as expected. Please see the screenshot below for the .f1.checkSensor</p><p><br></p><p>my code for error trapping <br>if[0b=mysensor in key this_dict; .Q.trp[‘string[mySensor],” is not a valid option for mysensor – valid options include `temp`tyre`wind`all”]]; </p><p><br></p><p>To run:</p><p>.f1.checkSensor[raceDay;lapTable;`temperature] // should errorResult return:
“temperature is not a valid option for mysensor – valid options include `temp`tyre`wind`all”
Log in to reply.