Fix compiler warning due to missing function prototype.
[svn.git] / subversion / bindings / swig / perl / native / t / 5delta.t
blob7a57af8a2744418023e874776ba8e4bda3338042
1 #!/usr/bin/perl
2 use strict;
3 use Test::More tests => 3;
4 require SVN::Core;
5 require SVN::Delta;
7 my ($srctext, $tgttext, $result) = ('abcd===eflfjgjkx', 'abcd=--ef==lfjffgjx', '');
9 open my $source, '<', \$srctext;
10 open my $target, '<', \$tgttext;
11 open my $aresult, '>', \$result;
13 my $txstream = SVN::TxDelta::new ($source, $target);
15 isa_ok ($txstream, '_p_svn_txdelta_stream_t');
16 open my $asource, '<', \$srctext;
17 my ($md5, @handle) = SVN::TxDelta::apply ($asource, $aresult, undef);
19 SVN::TxDelta::send_txstream ($txstream, @handle);
21 is ($result, $tgttext, 'delta self test');
23 is("$md5", 'a22b3dadcbddac48d2f1eae3ec5fb86a', 'md5 matched');