From 5269edf1702b7375a287d5bbbb3c1b1f3a8aa765 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 18 Jan 2011 09:43:43 -0800 Subject: [PATCH] t4034 (diff --word-diff): add a minimum Perl drier test vector Signed-off-by: Junio C Hamano --- t/t4034-diff-words.sh | 1 + t/t4034/perl/expect | 13 +++++++++++++ t/t4034/perl/post | 22 ++++++++++++++++++++++ t/t4034/perl/pre | 22 ++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 t/t4034/perl/expect create mode 100644 t/t4034/perl/post create mode 100644 t/t4034/perl/pre diff --git a/t/t4034-diff-words.sh b/t/t4034-diff-words.sh index c3b1c481c..37aeab0d5 100755 --- a/t/t4034-diff-words.sh +++ b/t/t4034-diff-words.sh @@ -301,6 +301,7 @@ test_language_driver html test_language_driver java test_language_driver objc test_language_driver pascal +test_language_driver perl test_language_driver php test_language_driver python test_language_driver ruby diff --git a/t/t4034/perl/expect b/t/t4034/perl/expect new file mode 100644 index 000000000..a1deb6b6a --- /dev/null +++ b/t/t4034/perl/expect @@ -0,0 +1,13 @@ +diff --git a/pre b/post +index f6610d3..e8b72ef 100644 +--- a/pre ++++ b/post +@@ -4,8 +4,8 @@ + +package Frotz; +sub new { + my ($class, %opts) = shift@_; + return bless { xyzzy => "nitfol", %opts }, $class; +} + +__END__ diff --git a/t/t4034/perl/post b/t/t4034/perl/post new file mode 100644 index 000000000..e8b72ef5d --- /dev/null +++ b/t/t4034/perl/post @@ -0,0 +1,22 @@ +#!/usr/bin/perl + +use strict; + +package Frotz; +sub new { + my ($class, %opts) = @_; + return bless { xyzzy => "nitfol", %opts }, $class; +} + +__END__ +=head1 NAME + +frotz - Frotz + +=head1 SYNOPSIS + + use frotz; + + $nitfol = new Frotz(); + +=cut diff --git a/t/t4034/perl/pre b/t/t4034/perl/pre new file mode 100644 index 000000000..f6610d37b --- /dev/null +++ b/t/t4034/perl/pre @@ -0,0 +1,22 @@ +#!/usr/bin/perl + +use strict; + +package Frotz; +sub new { + my $class = shift; + return bless {}, $class; +} + +__END__ +=head1 NAME + +frotz - Frotz + +=head1 SYNOPSIS + + use frotz; + + $nitfol = new Frotz(); + +=cut -- 2.30.2