00utils_svn.t #2

  • //
  • guest/
  • perforce_software/
  • revml/
  • t/
  • 00utils_svn.t
  • View
  • Commits
  • Open Download .zip Download (1 KB)
#!/usr/local/bin/perl -w

=head1 NAME

00utils_svn.t - testing of VCP::Utils::svn

=cut

use strict ;

use Carp ;
use Test ;
use VCP::Utils::svn;

my @tests = (
sub { ok eval { VCP::Utils::svn::RCS_check_tag( "a"  ), 1 } || $@, 1 },
sub { ok eval { VCP::Utils::svn::RCS_check_tag( "ab" ), 1 } || $@, 1 },
sub { ok eval { VCP::Utils::svn::RCS_check_tag( "a1" ), 1 } || $@, 1 },
sub { ok eval { VCP::Utils::svn::RCS_check_tag( "a(" ), 1 } || $@, 1 },
sub { ok eval { VCP::Utils::svn::RCS_check_tag( "0"  ), 1 } ||  0, 0 },
sub { ok eval { VCP::Utils::svn::RCS_check_tag( "("  ), 1 } ||  0, 0 },
sub { ok eval { VCP::Utils::svn::RCS_check_tag( "a b"  ), 1 } ||  0, 0 },

sub { ok VCP::Utils::svn::RCS_underscorify_tag( "a"  ), "a"   },
sub { ok VCP::Utils::svn::RCS_underscorify_tag( "ab" ), "ab"  },
sub { ok VCP::Utils::svn::RCS_underscorify_tag( "a1" ), "a1"  },
sub { ok VCP::Utils::svn::RCS_underscorify_tag( "a(" ), "a("  },
sub { ok VCP::Utils::svn::RCS_underscorify_tag( "a/" ), "a/"  },

sub { ok VCP::Utils::svn::RCS_underscorify_tag( "0"  ), "tag_0"    },
sub { ok VCP::Utils::svn::RCS_underscorify_tag( "("  ), "tag_("    },
sub { ok VCP::Utils::svn::RCS_underscorify_tag( "a b"), "a_20_b"   },
sub { ok VCP::Utils::svn::RCS_underscorify_tag( " a" ), "tag__20_a" },
) ;

plan tests => scalar( @tests ) ;

$_->() for @tests ;
# Change User Description Committed
#2 5404 Barrie Slaymaker - SVN support added
- Makefile gives clearer notices about missing optional
  prereqs.
- VCP::Filter::labelmap and VCP::Filter::map: <<skip>> replaces
  deprecated <<delete>> to be clearer that no revisions
  are deleted from either repository but some just are
  skipped and not inserted.
- VCP::Filter::map: support added for SVN-like branch labels
- VCP::Source: support added for ISO8601 timestamps
  emitted by SVN.
#1 5345 Barrie Slaymaker - Test suite branched for svn
//guest/perforce_software/revml/t/00utils_cvs.t
#3 2691 Barrie Slaymaker Generalize underscorification of RCS tags a bit to reduce chances
       of a collision (still possible, but should be much lower probability).
#2 2690 Barrie Slaymaker Make sure the "/" in RCS tag "a/" is not underscorified
#1 2681 Barrie Slaymaker Testing the new routines