what_is_oraw.py 597 B

123456789101112131415
  1. from evaluator import *
  2. DESCRIPTION = "This test case checks if the model knows lpr commands."
  3. TAGS = ['explain']
  4. question = """
  5. I have a .ps file that I want to print from my mac. I'm trying to use lpr. But every time I print it all I get is the actual bytes just printed with like hundreds of pages and this is not what I want. I want the printer to just print the ps directly. What command should I use to make this work?
  6. """
  7. TestWhatIsLPR = question >> LLMRun() >> (SubstringEvaluator("-o raw") | SubstringEvaluator("-l "))
  8. if __name__ == "__main__":
  9. print(run_test(TestWhatIsLPR))