what_is_inv.py 461 B

1234567891011121314
  1. from evaluator import *
  2. DESCRIPTION = "This test case is designed to check if the model can correctly identify the Python operator used for the tilde (~) symbol."
  3. TAGS = ['explain', 'python']
  4. question = """
  5. In python what __thing__ do I use for ~, kind of like how __add__ is for +?
  6. """
  7. TestWhatIsInv = question >> LLMRun() >> (SubstringEvaluator("__inv__") | SubstringEvaluator("__invert__"))
  8. if __name__ == "__main__":
  9. print(run_test(TestWhatIsInv))