File: version.t

package info (click to toggle)
libautodie-perl 2.29-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 764 kB
  • ctags: 299
  • sloc: perl: 3,856; makefile: 2
file content (28 lines) | stat: -rwxr-xr-x 1,011 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/perl -w
use strict;
use Test::More;

if (not $ENV{RELEASE_TESTING}) {
    plan( skip_all => 'Release test.  Set $ENV{RELEASE_TESTING} to true to run.');
}
plan tests => 8;

# For the moment, we'd like all our versions to be the same.
# In order to play nicely with some code scanners, they need to be
# hard-coded into the files, rather than just nicking the version
# from autodie::exception at run-time.

require Fatal;
require autodie;
require autodie::hints;
require autodie::exception;
require autodie::exception::system;

ok(defined($autodie::VERSION), 'autodie has a version');
ok(defined($autodie::exception::VERSION), 'autodie::exception has a version');
ok(defined($autodie::hints::VERSION), 'autodie::hints has a version');
ok(defined($Fatal::VERSION), 'Fatal has a version');
is($Fatal::VERSION, $autodie::VERSION);
is($autodie::VERSION, $autodie::exception::VERSION);
is($autodie::exception::VERSION, $autodie::exception::system::VERSION);
is($Fatal::VERSION, $autodie::hints::VERSION);