summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5094d15)
raw | patch | inline | side by side (parent: 5094d15)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 18 Jan 2011 17:43:43 +0000 (09:43 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 18 Jan 2011 17:44:22 +0000 (09:44 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4034-diff-words.sh | patch | blob | history | |
t/t4034/perl/expect | [new file with mode: 0644] | patch | blob |
t/t4034/perl/post | [new file with mode: 0644] | patch | blob |
t/t4034/perl/pre | [new file with mode: 0644] | patch | blob |
diff --git a/t/t4034-diff-words.sh b/t/t4034-diff-words.sh
index c3b1c481ceba8bade0846c1c5e684047c7834055..37aeab0d5c7415a54384c90708626f6a5807acee 100755 (executable)
--- a/t/t4034-diff-words.sh
+++ b/t/t4034-diff-words.sh
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
--- /dev/null
+++ b/t/t4034/perl/expect
@@ -0,0 +1,13 @@
+<BOLD>diff --git a/pre b/post<RESET>
+<BOLD>index f6610d3..e8b72ef 100644<RESET>
+<BOLD>--- a/pre<RESET>
+<BOLD>+++ b/post<RESET>
+<CYAN>@@ -4,8 +4,8 @@<RESET>
+
+package Frotz;<RESET>
+sub new {<RESET>
+ my <GREEN>(<RESET>$class<GREEN>, %opts)<RESET> = <RED>shift<RESET><GREEN>@_<RESET>;
+ return bless { <GREEN>xyzzy => "nitfol", %opts<RESET> }, $class;
+}<RESET>
+
+__END__<RESET>
diff --git a/t/t4034/perl/post b/t/t4034/perl/post
--- /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
--- /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