print_hello.py 469 B

12345678910111213141516
  1. from evaluator import *
  2. DESCRIPTION = "Test if the model can generate a basic python program that prints \"hello world\"."
  3. TAGS = ['code', 'python']
  4. question = 'Write a python program that prints the string "hello world" and tell me how it works in a sentence'
  5. answer = "hello world"
  6. TestPrintHello = question >> LLMRun() >> ExtractCode(keep_main=True) >> PythonRun() >> SubstringEvaluator(answer)
  7. if __name__ == "__main__":
  8. print(run_test(TestPrintHello))