File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ export function isCorrect(question: Question, answer: string): boolean {
3232 * be exactly one of the options.
3333 */
3434export function isValid ( question : Question , answer : string ) : boolean {
35- if ( question . type === "short_answer_question" ) {
36- return true ;
37- }
38- else if ( question . type === "multiple_choice_question" ) {
39- return question . options . includes ( answer ) }
40- // return question.type === "short_answer_question" ? true: question.options.includes(answer)
35+ // if (question.type === "short_answer_question"){
36+ // return true;
37+ // }
38+ // else if (question.type === "multiple_choice_question") {
39+ // return question.options.includes(answer) }
40+ return question . type === "short_answer_question" ? true : question . options . includes ( answer )
4141 }
4242/**
4343 * Consumes a question and produces a string representation combining the
You can’t perform that action at this time.
0 commit comments