#  tests for perl-config-general-2.65-pl5321hdfd78af_0 (this is a generated file);
print('===== testing package: perl-config-general-2.65-pl5321hdfd78af_0 =====');
print('running run_test.pl');
#  --- run_test.pl (begin) ---
#!/usr/bin/env perl

my @items = (
    ["Config::General", "2.65"],
    ["Config::General::Extended", "2.07"],
    ["Config::General::Interpolated", "2.16"],
);


foreach $item (@items) {
    my ($module, $expected_version) = @$item;
    print "Checking '$module' version: ";
    my $actual_version = eval "use $module; $module->VERSION";
    if($@) { die $@; }
    if(defined $actual_version) {
        print $actual_version;
        if($actual_version == $expected_version) {
            print " (PASSED)\n";
        }
        else {
            print " (FAILED)\n";
            die("$module: Expected version '$expected_version', " .
                "but found '$actual_version'.")
        }
    }
    elsif(defined $expected_version) {
        print "<not available> (FAILED)\n";
        die("$module: Expected version '$expected_version', " .
            "but found none");
    }
    else {
        print "<not available> (PASSED)\n";
    }
}
#  --- run_test.pl (end) ---

print('===== perl-config-general-2.65-pl5321hdfd78af_0 OK =====');
my $expected_version = "2.65";
