File: invalid-version-from-env.t

package info (click to toggle)
libpandoc-elements-perl 0.38-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 732 kB
  • sloc: perl: 1,630; makefile: 15; sh: 1
file content (11 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
use strict;
use Test::More;
use Test::Exception;

local $ENV{PANDOC_VERSION} = 'x';
lives_ok { 
    require Pandoc::Elements; 
    ok Pandoc::Elements::pandoc_version() > '1.12.1';
} 'ignore invalid PANDOC_VERSION from ENV';

done_testing;