blob: 5b6fbe1f3f758de5663774c02c52aa7baf8bd568 [file] [log] [blame]
Akron5fb5e8d2020-07-23 17:45:13 +02001use strict;
2use warnings;
3use Test::More;
4
5use FindBin;
6BEGIN {
7 unshift @INC, "$FindBin::Bin/../lib";
8};
9
10use_ok('Test::KorAP::XML::TEI','korap_tempfile');
11
12my ($fh, $filename) = korap_tempfile('test');
13ok($fh, 'Filehandle created');
14ok($filename, 'Filename returned');
15close($fh);
16
17like($filename, qr!KorAP-XML-TEI_test_.+?\.tmp$!, 'Filename pattern');
18
19($fh, $filename) = korap_tempfile();
20ok($fh, 'Filehandle created');
21ok($filename, 'Filename returned');
22close($fh);
23
24like($filename, qr!KorAP-XML-TEI_.+?\.tmp$!, 'Filename pattern');
25
26done_testing;