mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 21:54:48 +00:00
VersionParser: Allow laxer version numbers, introduce the other cmp methods.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user