Skip to content

Commit

Permalink
Got -o going in YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Jan 20, 2025
1 parent e1374df commit c21eb19
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 54 deletions.
2 changes: 1 addition & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ t/ack-m.t
t/ack-man.t
t/ack-match.t
t/ack-n.t
t/ack-o.t
t/ack-o.yaml
t/ack-output.t
t/ack-pager.t
t/ack-passthru.t
Expand Down
51 changes: 0 additions & 51 deletions t/ack-o.t

This file was deleted.

25 changes: 25 additions & 0 deletions t/ack-o.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: No -o
args: 'the\s+\S+ t/text/gettysburg.txt'
ordered: true
stdout: |
but it can never forget what they did here. It is for us the living,
rather, to be dedicated here to the unfinished work which they who
here dedicated to the great task remaining before us -- that from these
the last full measure of devotion -- that we here highly resolve that
shall have a new birth of freedom -- and that government of the people,
by the people, for the people, shall not perish from the earth.
---
name: With -o
args: 'the\s+\S+ t/text/gettysburg.txt -o'
ordered: true
stdout: |
the living,
the unfinished
the great
the last
the people,
the people,
the people,
the earth.
2 changes: 0 additions & 2 deletions t/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def sorted_output(block: str):


def run_test(test):
print(test)

for args in test["args"]:
args = args.split()
command = ["perl", "-Mblib", "ack", "--noenv"] + args
Expand Down

0 comments on commit c21eb19

Please sign in to comment.