mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
pt-va: Delimit sentences by . or ?
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 => 5;
|
||||
use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # These two shifts are required for tools that use base and
|
||||
@@ -68,7 +68,18 @@ ok(
|
||||
"--ignore-rules"
|
||||
);
|
||||
|
||||
my ($output) = full_output(sub {
|
||||
pt_variable_advisor::main(@args,
|
||||
'--source-of-variables', "$sample/vars-baron-002.txt"
|
||||
)});
|
||||
|
||||
like(
|
||||
$output,
|
||||
qr/\Qdual-master or ring replication configuration?\E$/sm,
|
||||
"Sentences are delimited by . or ?"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
exit;
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user