Fix failing import test for Readonly
@@ -25,12 +25,14 @@ requirements:
- perl
test:
- imports:
- - Readonly
- - Readonly::Array
- - Readonly::Hash
- - Readonly::Scalar
commands:
+ # Default import test fails as version is not provided via a method.
+ - perl -we '
+ use Readonly;
+ my $ver = $Readonly::VERSION; # Readonly->VERSION does NOT work
+ die "Version mismatch: expected {{ version }}, but found $ver"
+ unless $ver eq "{{ version }}";
+ '
- perl -we 'use Readonly; Readonly::Scalar my $foo => "bar"'
about:
