3 use Test
::More tests
=> 3;
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');