from evaluator import * DESCRIPTION = "Test if a model knows that editing the innerHTML clears event listeners." TAGS = ['explain'] question = """ Why doesn't the slider onchange event fire when I run this code? ```
``` Tell me how to fix it. """ evaluation = """ Below is a student's answer to a question about what a particular instruction does: Does the student's say something similar to "editing the innerHTML clears event listeners"? If the answer is correct say "The student passes" otherwise "The student fails". """ TestInnerHTMLEventListener = question >> LLMRun() >> LLMRun(evaluation, llm=EVAL_LLM) >> SubstringEvaluator("student passes") if __name__ == "__main__": print(run_test(TestInnerHTMLEventListener))