Skip to content

Commit 5269edf

Browse files
committed
t4034 (diff --word-diff): add a minimum Perl drier test vector
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5094d15 commit 5269edf

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

t/t4034-diff-words.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ test_language_driver html
301301
test_language_driver java
302302
test_language_driver objc
303303
test_language_driver pascal
304+
test_language_driver perl
304305
test_language_driver php
305306
test_language_driver python
306307
test_language_driver ruby

t/t4034/perl/expect

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<BOLD>diff --git a/pre b/post<RESET>
2+
<BOLD>index f6610d3..e8b72ef 100644<RESET>
3+
<BOLD>--- a/pre<RESET>
4+
<BOLD>+++ b/post<RESET>
5+
<CYAN>@@ -4,8 +4,8 @@<RESET>
6+
7+
package Frotz;<RESET>
8+
sub new {<RESET>
9+
my <GREEN>(<RESET>$class<GREEN>, %opts)<RESET> = <RED>shift<RESET><GREEN>@_<RESET>;
10+
return bless { <GREEN>xyzzy => "nitfol", %opts<RESET> }, $class;
11+
}<RESET>
12+
13+
__END__<RESET>

t/t4034/perl/post

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/perl
2+
3+
use strict;
4+
5+
package Frotz;
6+
sub new {
7+
my ($class, %opts) = @_;
8+
return bless { xyzzy => "nitfol", %opts }, $class;
9+
}
10+
11+
__END__
12+
=head1 NAME
13+
14+
frotz - Frotz
15+
16+
=head1 SYNOPSIS
17+
18+
use frotz;
19+
20+
$nitfol = new Frotz();
21+
22+
=cut

t/t4034/perl/pre

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/perl
2+
3+
use strict;
4+
5+
package Frotz;
6+
sub new {
7+
my $class = shift;
8+
return bless {}, $class;
9+
}
10+
11+
__END__
12+
=head1 NAME
13+
14+
frotz - Frotz
15+
16+
=head1 SYNOPSIS
17+
18+
use frotz;
19+
20+
$nitfol = new Frotz();
21+
22+
=cut

0 commit comments

Comments
 (0)