зеркало из https://github.com/microsoft/git.git
t4034 (diff --word-diff): add a minimum Perl drier test vector
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
5094d15874
Коммит
5269edf170
|
@ -301,6 +301,7 @@ test_language_driver html
|
||||||
test_language_driver java
|
test_language_driver java
|
||||||
test_language_driver objc
|
test_language_driver objc
|
||||||
test_language_driver pascal
|
test_language_driver pascal
|
||||||
|
test_language_driver perl
|
||||||
test_language_driver php
|
test_language_driver php
|
||||||
test_language_driver python
|
test_language_driver python
|
||||||
test_language_driver ruby
|
test_language_driver ruby
|
||||||
|
|
|
@ -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>
|
|
@ -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
|
|
@ -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
|
Загрузка…
Ссылка в новой задаче