Password: Tabs to spaces
parent
ba804de6d1
commit
34cf88394a
|
@ -83,13 +83,13 @@ handle remainder => sub {
|
|||
|
||||
# Add password for display.
|
||||
return "$pw_string (random password)", structured_answer => {
|
||||
data => {
|
||||
title => $pw_string,
|
||||
subtitle => "Random password: $pw_length characters, $pw_strength strength"
|
||||
},
|
||||
templates => {
|
||||
group => 'text'
|
||||
}
|
||||
data => {
|
||||
title => $pw_string,
|
||||
subtitle => "Random password: $pw_length characters, $pw_strength strength"
|
||||
},
|
||||
templates => {
|
||||
group => 'text'
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
|
22
t/Password.t
22
t/Password.t
|
@ -10,17 +10,17 @@ zci answer_type => 'pw';
|
|||
zci is_cached => 0;
|
||||
|
||||
sub build_test {
|
||||
my ($chars, $strength) = @_;
|
||||
my $answer = re(qr/^.{$chars}/);
|
||||
return test_zci($answer, structured_answer => {
|
||||
data => {
|
||||
title => $answer,
|
||||
subtitle => "Random password: $chars characters, $strength strength"
|
||||
},
|
||||
templates => {
|
||||
group => 'text'
|
||||
}
|
||||
});
|
||||
my ($chars, $strength) = @_;
|
||||
my $answer = re(qr/^.{$chars}/);
|
||||
return test_zci($answer, structured_answer => {
|
||||
data => {
|
||||
title => $answer,
|
||||
subtitle => "Random password: $chars characters, $strength strength"
|
||||
},
|
||||
templates => {
|
||||
group => 'text'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
ddg_goodie_test(
|
||||
|
|
Loading…
Reference in New Issue