VersionParser: Allow laxer version numbers, introduce the other cmp methods.

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-06-05 13:50:41 -03:00
parent 6b93d51e43
commit 6ede613752
2 changed files with 73 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ BEGIN {
use strict;
use warnings FATAL => 'all';
use English qw(-no_match_vars);
use Test::More tests => 4;
use Test::More tests => 5;
use VersionParser;
use PerconaTest;
@@ -22,6 +22,12 @@ is(
'Parser works on ordinary version',
);
is(
$vp->parse('5.5'),
'005005000',
'Parser works on a simplified version',
);
# Open a connection to MySQL, or skip the rest of the tests.
use DSNParser;
use Sandbox;