Skip to content

Commit

Permalink
Move -l to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Jan 21, 2025
1 parent f343013 commit 77230c0
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 112 deletions.
2 changes: 1 addition & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ t/ack-i.t
t/ack-ignore-dir.t
t/ack-ignore-file.t
t/ack-k.yaml
t/ack-l.t
t/ack-l.yaml
t/ack-m.t
t/ack-man.t
t/ack-match.t
Expand Down
110 changes: 0 additions & 110 deletions t/ack-l.t

This file was deleted.

40 changes: 40 additions & 0 deletions t/ack-l.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Simple -l
args:
- strict t/text -l
- strict t/text --files-with-matches
stdout: |
t/text/bill-of-rights.txt
t/text/constitution.txt
---
name: Simple -L
args:
- strict t/text -L
- strict t/text --files-without-matches
stdout: |
t/text/amontillado.txt
t/text/gettysburg.txt
t/text/movies.txt
t/text/number.txt
t/text/numbered-text.txt
t/text/ozymandias.txt
t/text/raven.txt
---
name: -l with inverted match
args:
- religion t/text -l -v
- religion t/text -l --invert-match
- religion t/text --files-with-matches -v
- religion t/text --files-with-matches --invert-match
stdout: |
t/text/amontillado.txt
t/text/bill-of-rights.txt
t/text/constitution.txt
t/text/gettysburg.txt
t/text/movies.txt
t/text/number.txt
t/text/numbered-text.txt
t/text/ozymandias.txt
t/text/raven.txt
2 changes: 1 addition & 1 deletion t/yaml.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use warnings;
use strict;

use Test::More tests => 8;
use Test::More tests => 9;

use lib 't';
use Util;
Expand Down

0 comments on commit 77230c0

Please sign in to comment.