#!perl -wT
# Win32::GUI::DIBitmap test suite.
# $Id: 97_Version.t,v 1.1 2008/02/08 18:02:04 robertemay Exp $
# Testing that DIBitmap.dll has the same version as DIBitmap.pm
use strict;
use warnings;
BEGIN { $| = 1 } # Autoflush
use Test::More tests => 4;
use Win32::GUI();
use Win32::GUI::DIBitmap();
use Config;
my($maj_pm, $min_pm, $rc_pm);
my $version = $Win32::GUI::DIBitmap::VERSION . '00';
if($version =~ m/^(\d+)\.(\d\d)(\d\d)/) {
($maj_pm, $min_pm, $rc_pm) = ($1, $2, $3);
}
my ($maj_rc, $min_rc, $rc_rc, $extra) = Win32::GUI::GetDllVersion('DIBitmap.' . $Config{dlext});
ok($maj_pm == $maj_rc, "Major Version numbers the same");
ok($min_pm == $min_rc, "Minor Version numbers the same");
ok($rc_pm == $rc_rc, "RC numbers the same");
ok(!defined $extra, "No extra information");