File: unimport.t

package info (click to toggle)
libre-engine-re2-perl 0.18%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: cpp: 270; perl: 80; makefile: 2; sh: 1
file content (9 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
use Test::More tests => 3;
BEGIN {
    require re::engine::RE2;
    re::engine::RE2->import;
    ok(exists $^H{regcomp}, '$^H{regcomp} exists');
    cmp_ok($^H{regcomp}, '!=', 0);
    re::engine::RE2->unimport;
    ok(!exists $^H{regcomp}, '$^H{regcomp} deleted');
}