mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-27 16:12:04 +00:00
Slight improvement to the deserialize regex and its test output.
This commit is contained in:
@@ -172,7 +172,7 @@ sub deserialize_list {
|
|||||||
[^\\,]* # Same as above.
|
[^\\,]* # Same as above.
|
||||||
)* # Repeat zero of more times.
|
)* # Repeat zero of more times.
|
||||||
)
|
)
|
||||||
(?:,|\z) # Comma dividing elements or absolute end of the string.
|
,? # Comma dividing elements or absolute end of the string.
|
||||||
/sxg;
|
/sxg;
|
||||||
|
|
||||||
# Last element will always be empty. Flaw in the regex.
|
# Last element will always be empty. Flaw in the regex.
|
||||||
|
@@ -155,7 +155,7 @@ SKIP: {
|
|||||||
$sth->execute($test_index, $ser);
|
$sth->execute($test_index, $ser);
|
||||||
$selsth->execute($test_index);
|
$selsth->execute($test_index);
|
||||||
|
|
||||||
my $flat_string = "@{$serialize_tests[$test_index]}";
|
my $flat_string = "[" . join("][", @{$serialize_tests[$test_index]}) . "]";
|
||||||
$flat_string =~ s/\n/\\n/g;
|
$flat_string =~ s/\n/\\n/g;
|
||||||
|
|
||||||
is_deeply(
|
is_deeply(
|
||||||
|
Reference in New Issue
Block a user