Menu

#21 hwut --happy -- test runs

open
nobody
None
1
2025-05-22
2025-05-22
Anonymous
No

hwut --happy text.txt my-test-file.py
shall take the 'HAPPY' expressions from 'my-test-file.py''s --hwut-info response and apply it to content from 'text.txt'. This helps to see whether the regular expression really triggered.

EXAMPLE "my-test-file.py":
...
if "--hwut-info" in sys.argv:
...
print("HAPPY: \d.?\d;)
...

Then "text.txt"

   something 0.815 else

 when called with 'hwut --happy text.txt my-test-file.py' shall cause an output

  something [[HAPPY]] else

Discussion

Anonymous
Anonymous

Add attachments
Cancel