Skip to content

Commit

Permalink
Fix length test for fingerprint overflow
Browse files Browse the repository at this point in the history
Apparently the value returned on Windows is different from Linux (thanks
@appveyor!) but for this test it should only care about the length of
the string, not its content.
  • Loading branch information
zakame committed Apr 15, 2018
1 parent 7b3b993 commit 4370ed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/01_cuid.t
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ subtest 'private functions' => sub {
local $$ = 36**2 - 1;
my $fp_mockpid = Data::Cuid::_fingerprint;
note explain $fp_mockpid;
is $fp_mockpid, 'ZZ9L', 'fingerprint overflow but still at max size';
is length $fp_mockpid, 4,
'fingerprint overflow but still at max size';
};

ok Data::Cuid::_random_block, 'got random block';
Expand Down

0 comments on commit 4370ed6

Please sign in to comment.