gitignore_anywhere.py 679 B

1234567891011121314151617181920
  1. from evaluator import *
  2. DESCRIPTION = "Test if the model can understand and interpret a request to gitignore any file called \"foo/.KEYFILE\" regardless of its location in a repository."
  3. TAGS = ['explain']
  4. question1 = """
  5. gitignore any file called .KEYFILE directly inside a directory foo, which itself is anywhere
  6. """
  7. TestWhatIsStarStar = question1 >> LLMRun() >> SubstringEvaluator("**/foo/.KEYFILE")
  8. question2 = """
  9. gitignore any file called .KEYFILE anywhere under a directory foo, which itself is anywhere
  10. """
  11. TestWhatIsStarStarB = question2 >> LLMRun() >> SubstringEvaluator("**/foo/**/.KEYFILE")
  12. if __name__ == "__main__":
  13. print(run_test(TestWhatIsStarStarB))