Skip to content

Commit c147822

Browse files
committed
Convert ack-m to YAML
1 parent fca826d commit c147822

File tree

4 files changed

+27
-56
lines changed

4 files changed

+27
-56
lines changed

MANIFEST

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ t/ack-ignore-dir.t
5353
t/ack-ignore-file.t
5454
t/ack-k.yaml
5555
t/ack-l.yaml
56-
t/ack-m.t
56+
t/ack-m.yaml
5757
t/ack-man.t
5858
t/ack-match.t
5959
t/ack-n.t

t/ack-m.t

-53
This file was deleted.

t/ack-m.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: -m
3+
args: -m 3 -w the t/text/bill-of-rights.txt t/text/constitution.txt
4+
stdout: |
5+
t/text/bill-of-rights.txt:4:or prohibiting the free exercise thereof; or abridging the freedom of
6+
t/text/bill-of-rights.txt:5:speech, or of the press; or the right of the people peaceably to assemble,
7+
t/text/bill-of-rights.txt:6:and to petition the Government for a redress of grievances.
8+
t/text/constitution.txt:3:We the People of the United States, in Order to form a more perfect
9+
t/text/constitution.txt:4:Union, establish Justice, insure domestic Tranquility, provide for the
10+
t/text/constitution.txt:5:common defense, promote the general Welfare, and secure the Blessings
11+
12+
---
13+
name: -1
14+
args: -1 -w the t/text/bill-of-rights.txt t/text/constitution.txt
15+
stdout: |
16+
t/text/bill-of-rights.txt:4:or prohibiting the free exercise thereof; or abridging the freedom of
17+
18+
---
19+
name: -m with -l
20+
args: -m 3 -l -w --sort the t/text/
21+
stdout: |
22+
t/text/amontillado.txt
23+
t/text/bill-of-rights.txt
24+
t/text/constitution.txt

t/yaml.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use warnings;
44
use strict;
55

6-
use Test::More tests => 12;
6+
use Test::More tests => 13;
77

88
use lib 't';
99
use Util;
@@ -19,7 +19,7 @@ MAIN: {
1919

2020
for my $test ( @tests ) {
2121
for my $args ( @{$test->{args}} ) {
22-
subtest $file . ' ' . join( ', ', @{$args} ) => sub {
22+
subtest $test->{name} . ' ' . join( ', ', @{$args} ) => sub {
2323
if ( $test->{ordered} ) {
2424
ack_lists_match( $args, $test->{stdout}, $test->{name} );
2525
}

0 commit comments

Comments
 (0)