latex_redef.py 529 B

1234567891011121314
  1. from evaluator import *
  2. DESCRIPTION = "Test if a model can use latex \\renewcommand, and do a bit more than what I actually asked."
  3. TAGS = ['explain']
  4. question = """
  5. Redfine \\paragraph to be \\bigskip\\textbf
  6. """
  7. TestLatexRedef = question >> LLMRun() >> ((SubstringEvaluator("\\renewcommand{\\paragraph}") | SubstringEvaluator("\\renewcommand\\paragraph")) & SubstringEvaluator("\\bigskip") & SubstringEvaluator("\\textbf") & SubstringEvaluator("\\noindent"))
  8. if __name__ == "__main__":
  9. print(run_test(TestLatexRedef))