hsxkpasswd icon indicating copy to clipboard operation
hsxkpasswd copied to clipboard

t/02-generate-passwords.t fails with Type-Tiny-2.000001

Open eclipseo opened this issue 2 years ago • 1 comments

After upgrading Type-Tiny from 1.016010 to 2.000001 t/02-generate-passwords.t fails like this:

t/01-defined-constants.t ... ok
#   Failed test 'password generation with named argument 'dictionary_list''
#   at t/02-generate-passwords.t line 28.
#   Failed test 'password generation with named argument 'dictionary_file''
#   at t/02-generate-passwords.t line 35.
#   Failed test 'password generation with named arguments 'dictionary_file' & 'dictionary_file_encoding''
#   at t/02-generate-passwords.t line 41.
# Looks like you failed 3 tests of 10.
t/02-generate-passwords.t .. 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/10 subtests 

This is triggered by this change in Type-Tiny https://github.com/tobyink/p5-type-tiny/commit/4baba12312f45d2e657468e26b64c643687651d1:

commit 4baba12312f45d2e657468e26b64c643687651d1 (HEAD)
Author: Toby Inkster <[email protected]>
Date:   Sun Sep 11 19:16:15 2022 +0100

    Bring multisig functionality into the v2 API

I can reduce the reproducer to:

perl -T -I/tmp/p5-type-tiny/lib -Ilib -e 'use Crypt::HSXKPasswd; Crypt::HSXKPasswd->new(dictionary_list => [qw(seme tes words)])'
Alternative signatures must be CODE, HASH, or ARRAY refs at /tmp/p5-type-tiny/lib/Type/Params/Signature.pm line 26.

This exception was added in the linked commit.

eclipseo avatar Oct 23 '22 00:10 eclipseo