File: version_synch.t

package info (click to toggle)
libhash-sharedmem-perl 0.005-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 600 kB
  • sloc: perl: 463; makefile: 3
file content (17 lines) | stat: -r--r--r-- 373 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use warnings;
use strict;

use Test::More tests => 4;

BEGIN { require_ok "Hash::SharedMem"; }
my $main_ver = $Hash::SharedMem::VERSION;
ok defined($main_ver), "have main version number";

foreach my $submod (qw(Handle)) {
	my $mod = "Hash::SharedMem::$submod";
	require_ok $mod;
	no strict "refs";
	is ${"${mod}::VERSION"}, $main_ver, "$mod version number matches";
}

1;