File: 05_pkgwithversion.t

package info (click to toggle)
libv-perl 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 192 kB
  • sloc: perl: 556; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl -I.

use strict;
use warnings;

use t::Test::abeltje;

SKIP: {
    $] < 5.012 and skip ("This perl is not >= 5.12.0", 3);

    require_ok ("V");

    my $version = V::get_version ("PkgWithVersion");
    is ($version, 0.42, "Got version: $version");

    my $version2 = V::get_version ("PkgWithVersion2");
    is ($version2, "v1.42.00", "Got version: $version2");
    }

abeltje_done_testing ();