what_is_slice_stop.py 339 B

1234567891011121314
  1. from evaluator import *
  2. DESCRIPTION = "This test case checks if the model can say how to properly get the end of a slice."
  3. TAGS = ['explain', 'python']
  4. question = """
  5. How do I get sice(0, 5).end?
  6. """
  7. TestWhatIsSlice = question >> LLMRun() >> SubstringEvaluator(".stop")
  8. if __name__ == "__main__":
  9. print(run_test(TestWhatIsSlice))