You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing fails for classes using Types::Standard and Optional when Type::Tiny::XS (0.008) is installed. The following case passes when Type::Tiny::XS is not installed and fails for not enough arguments when it is. I don't know any XS so I'm not exactly sure what part is failing and what parts are not essential to the test case. I run Strawberry perl 5.14 on windows 64 but I am getting fails for linux on all versions of perl for modules I have posted to CPAN(updated) with Types::Standard qw( Optional ) for apparently the same reason (inferred).
#!perl
package MyTest;
use strict;
use warnings;
use Type::Utils 0.046 -all;
use Test::Most;
eval "use Type::Tiny::XS";
use Type::Library 0.046
-base,
-declare => qw(
TestDictionary SuperClassesList NameSpace
);
use Types::Standard 0.046 -types;
declare NameSpace,
as Str,
where{ $_ =~ /^[A-Za-z:]+$/ },
message{ "-$_- does not match: " . qr/^[A-Za-z:]+$/ };
declare SuperClassesList,
as ArrayRef[ ClassName ],
where{ scalar( @$_ ) > 0 };
declare TestDictionary,
as Dict[
package => Optional[ NameSpace ],
superclasses => Optional[ SuperClassesList ],
],;
ok TestDictionary->( { package => 'My::Package' } ),
"Test TestDictionary";
done_testing();
The error message with ~::XS installed is;
Too few arguments for type constraint check functions at C:/strawberry/perl/site/lib/Type/Tiny.pm line 358.
The text was updated successfully, but these errors were encountered:
I am seeing fails for classes using Types::Standard and Optional when Type::Tiny::XS (0.008) is installed. The following case passes when Type::Tiny::XS is not installed and fails for not enough arguments when it is. I don't know any XS so I'm not exactly sure what part is failing and what parts are not essential to the test case. I run Strawberry perl 5.14 on windows 64 but I am getting fails for linux on all versions of perl for modules I have posted to CPAN(updated) with Types::Standard qw( Optional ) for apparently the same reason (inferred).
The error message with ~::XS installed is;
The text was updated successfully, but these errors were encountered: