[text/plain 1.4k]
Hello Shlomi,
I made style improvements and added few string describing new option to
documentation. Hope this version is better then prev ones.
Regards,
Boris.
On Wed Oct 01 14:07:25 2008, SHLOMIF wrote:
> Hi Boris!
>
> Sorry for the late response - I encountered some technical
> difficulties.
>
> On Wed Oct 01 02:45:01 2008, bskaplou wrote:
> > Hello Shlomi,
> >
> > Attached file is svn diff with latest version, it also contains two
> unit
> > tests. I've run all existing tests and two new they all passes.
> >
>
> Some notes on your patch:
>
> 1.
> {{{
> ok($#results == 1, "Two differences in XMLs");
> +
> +#TEST
> +@results = $diff_ignore->compare($xml1, $xml2);
> +ok($#results == 0, "Only one difference if /root/el3 is excluded");
> }}}
>
> Please compare scalar(@results) using is.
>
> 2. In the test files, put the tests inside blocks for localising
> everything:
>
> <<<
> {
> my $diff = XML::SemanticDiff->(...)
> }
> >>>
>
> 3. Use "for my $i (0...)" (with a space after the $i" instead of "for
> my $i(0....)" without it.
>
> 4. Don't use "STMT if ..." - instead write it as "if ( ... ) {
> STMt } "
>
> 5.
>
> <<<<
> my $ignore = $self->{ignore_xpath};
> + my @ignore = @$ignore;
> >>>>
>
> Just do for my $path (@$ignore) - don't declare a variable - @ignore.
>
> 6. for my $ref(($from_doc, $to_doc)) - just do "for my $ref
> ($from_doc, $to_doc)"
>
> 7. Finally, this feature needs documentation.
>
> Regards,
>
> -- Shlomi Fish
>
>
>
> > Thanks,
> > Boris.
> >
[application/octet-stream 3.9k]
Message body not shown because it is too large or is not plain text.